Ver Fonte

LibGUI: Use move semantics in GUI::MultiPaintEvent

Andreas Kling há 3 anos atrás
pai
commit
da86f4e384
1 ficheiros alterados com 2 adições e 2 exclusões
  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 {
 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)
-        , m_rects(rects)
+        , m_rects(move(rects))
         , m_window_size(window_size)
     {
     }