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
//! Returns the current position of the mouse cursor.
/** \return Returns the current position of the cursor. The returned position
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.
/** \return Returns the current position of the cursor. The returned position
......
......@@ -153,7 +153,7 @@ namespace irr
}
//! Returns the current position of the mouse cursor.
virtual core::position2d<s32> getPosition()
virtual const core::position2d<s32>& getPosition()
{
return CursorPos;
}
......
......@@ -252,7 +252,7 @@ namespace irr
}
//! Returns the current position of the mouse cursor.
virtual core::position2d<s32> getPosition()
virtual const core::position2d<s32>& getPosition()
{
updateCursorPos();
return CursorPos;
......
......@@ -143,7 +143,7 @@ namespace irr
}
//! Returns the current position of the mouse cursor.
virtual core::position2d<s32> getPosition()
virtual const core::position2d<s32>& getPosition()
{
updateCursorPos();
return CursorPos;
......
......@@ -207,7 +207,7 @@ namespace irr
}
//! Returns the current position of the mouse cursor.
virtual core::position2d<s32> getPosition()
virtual const core::position2d<s32>& getPosition()
{
updateInternalCursorPosition();
return CursorPos;
......
......@@ -162,7 +162,7 @@ namespace irr
}
//! Returns the current position of the mouse cursor.
virtual core::position2d<s32> getPosition()
virtual const core::position2d<s32>& getPosition()
{
updateInternalCursorPosition();
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