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) { }