From f5f99ccd6af9a42d64db803b446909d8ed30c93a Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 20 Oct 2020 18:07:30 +0200 Subject: [PATCH] WindowServer: Return some event members by const reference --- Services/WindowServer/Event.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Services/WindowServer/Event.h b/Services/WindowServer/Event.h index ed9fbf2524..a1df6cb4cd 100644 --- a/Services/WindowServer/Event.h +++ b/Services/WindowServer/Event.h @@ -117,7 +117,7 @@ public: { } - Gfx::IntPoint position() const { return m_position; } + const Gfx::IntPoint& position() const { return m_position; } int x() const { return m_position.x(); } int y() const { return m_position.y(); } MouseButton button() const { return m_button; } @@ -150,7 +150,7 @@ public: { } - Gfx::IntRect rect() const { return m_rect; } + const Gfx::IntRect& rect() const { return m_rect; } private: Gfx::IntRect m_rect;