Constification of getter return value.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2784 dfc29bdd-3216-0410-991c-e03cc46cb475
master
hybrid 2009-11-03 09:42:15 +00:00
parent 22fdb7130b
commit c8570dca84
6 changed files with 6 additions and 6 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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