Commit c8570dca authored by hybrid's avatar hybrid

Constification of getter return value.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2784 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 22fdb713
...@@ -57,7 +57,7 @@ namespace gui ...@@ -57,7 +57,7 @@ namespace gui
//! Returns the current position of the mouse cursor. //! Returns the current position of the mouse cursor.
/** \return Returns the current position of the cursor. The returned position /** \return Returns the current position of the cursor. The returned position
is the position of the mouse cursor in pixel units. */ is the position of the mouse cursor in pixel units. */
virtual core::position2d<s32> getPosition() = 0; virtual const core::position2d<s32>& getPosition() = 0;
//! Returns the current position of the mouse cursor. //! Returns the current position of the mouse cursor.
/** \return Returns the current position of the cursor. The returned position /** \return Returns the current position of the cursor. The returned position
......
...@@ -153,7 +153,7 @@ namespace irr ...@@ -153,7 +153,7 @@ namespace irr
} }
//! Returns the current position of the mouse cursor. //! Returns the current position of the mouse cursor.
virtual core::position2d<s32> getPosition() virtual const core::position2d<s32>& getPosition()
{ {
return CursorPos; return CursorPos;
} }
......
...@@ -252,7 +252,7 @@ namespace irr ...@@ -252,7 +252,7 @@ namespace irr
} }
//! Returns the current position of the mouse cursor. //! Returns the current position of the mouse cursor.
virtual core::position2d<s32> getPosition() virtual const core::position2d<s32>& getPosition()
{ {
updateCursorPos(); updateCursorPos();
return CursorPos; return CursorPos;
......
...@@ -143,7 +143,7 @@ namespace irr ...@@ -143,7 +143,7 @@ namespace irr
} }
//! Returns the current position of the mouse cursor. //! Returns the current position of the mouse cursor.
virtual core::position2d<s32> getPosition() virtual const core::position2d<s32>& getPosition()
{ {
updateCursorPos(); updateCursorPos();
return CursorPos; return CursorPos;
......
...@@ -207,7 +207,7 @@ namespace irr ...@@ -207,7 +207,7 @@ namespace irr
} }
//! Returns the current position of the mouse cursor. //! Returns the current position of the mouse cursor.
virtual core::position2d<s32> getPosition() virtual const core::position2d<s32>& getPosition()
{ {
updateInternalCursorPosition(); updateInternalCursorPosition();
return CursorPos; return CursorPos;
......
...@@ -162,7 +162,7 @@ namespace irr ...@@ -162,7 +162,7 @@ namespace irr
} }
//! Returns the current position of the mouse cursor. //! Returns the current position of the mouse cursor.
virtual core::position2d<s32> getPosition() virtual const core::position2d<s32>& getPosition()
{ {
updateInternalCursorPosition(); updateInternalCursorPosition();
return CursorPos; return CursorPos;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment