summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-10-23 17:38:38 +0200
committerAndreas Kling <kling@serenityos.org>2021-10-23 17:38:38 +0200
commitda86f4e38414499357bce41b389adfd28a6e8fa6 (patch)
treeccbf0cd296580886f671820b8d9bd4d4e1416d4b /Userland/Libraries/LibGUI
parent877ddaa016514d1413160c6ff3f091774f197e6b (diff)
downloadserenity-da86f4e38414499357bce41b389adfd28a6e8fa6.zip
LibGUI: Use move semantics in GUI::MultiPaintEvent
Diffstat (limited to 'Userland/Libraries/LibGUI')
-rw-r--r--Userland/Libraries/LibGUI/Event.h4
1 files 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<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)
{
}