mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 19:22:45 +00:00 
			
		
		
		
	WindowServer: Return some event members by const reference
This commit is contained in:
		
							parent
							
								
									c8c7db8c33
								
							
						
					
					
						commit
						f5f99ccd6a
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -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; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling