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;