Преглед изворни кода

LibGUI: Use move semantics in GUI::MultiPaintEvent

Andreas Kling пре 3 година
родитељ
комит
da86f4e384
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      Userland/Libraries/LibGUI/Event.h

+ 2 - 2
Userland/Libraries/LibGUI/Event.h

@@ -230,9 +230,9 @@ private:
 
 
 class MultiPaintEvent final : public Event {
 class MultiPaintEvent final : public Event {
 public:
 public:
-    explicit MultiPaintEvent(const Vector<Gfx::IntRect, 32>& rects, const Gfx::IntSize& window_size)
+    explicit MultiPaintEvent(Vector<Gfx::IntRect, 32> rects, Gfx::IntSize const& window_size)
         : Event(Event::MultiPaint)
         : Event(Event::MultiPaint)
-        , m_rects(rects)
+        , m_rects(move(rects))
         , m_window_size(window_size)
         , m_window_size(window_size)
     {
     {
     }
     }