From da86f4e38414499357bce41b389adfd28a6e8fa6 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 23 Oct 2021 17:38:38 +0200 Subject: [PATCH] LibGUI: Use move semantics in GUI::MultiPaintEvent --- Userland/Libraries/LibGUI/Event.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibGUI/Event.h b/Userland/Libraries/LibGUI/Event.h index 86c5011142..28b328f312 100644 --- a/Userland/Libraries/LibGUI/Event.h +++ b/Userland/Libraries/LibGUI/Event.h @@ -230,9 +230,9 @@ private: class MultiPaintEvent final : public Event { public: - explicit MultiPaintEvent(const Vector& rects, const Gfx::IntSize& window_size) + explicit MultiPaintEvent(Vector rects, Gfx::IntSize const& window_size) : Event(Event::MultiPaint) - , m_rects(rects) + , m_rects(move(rects)) , m_window_size(window_size) { }