1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:28:12 +00:00

WindowServer: Return some event members by const reference

This commit is contained in:
Andreas Kling 2020-10-20 18:07:30 +02:00
parent c8c7db8c33
commit f5f99ccd6a

View file

@ -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;