From c0f4dfb331e89e6354b31c746cbcea7ff178e3f9 Mon Sep 17 00:00:00 2001 From: ArthurSonzogni Date: Sat, 19 Aug 2023 11:02:33 +0200 Subject: [PATCH] Fix clang-tidy. --- src/ftxui/dom/canvas.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ftxui/dom/canvas.cpp b/src/ftxui/dom/canvas.cpp index f42efb66d..f6501fd7d 100644 --- a/src/ftxui/dom/canvas.cpp +++ b/src/ftxui/dom/canvas.cpp @@ -849,7 +849,7 @@ class CanvasNodeBase : public Node { Element canvas(ConstRef canvas) { class Impl : public CanvasNodeBase { public: - explicit Impl(ConstRef canvas) : canvas_(canvas) { + explicit Impl(ConstRef canvas) : canvas_(std::move(canvas)) { requirement_.min_x = (canvas_->width() + 1) / 2; requirement_.min_y = (canvas_->height() + 3) / 4; }