Constification of getter return value.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2784 dfc29bdd-3216-0410-991c-e03cc46cb475master
parent
22fdb7130b
commit
c8570dca84
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
//! 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
|
||||||
}
|
}
|
||||||
|
|
||||||
//! 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
|
||||||
}
|
}
|
||||||
|
|
||||||
//! 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
|
||||||
}
|
}
|
||||||
|
|
||||||
//! 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
|
||||||
}
|
}
|
||||||
|
|
||||||
//! 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;
|
||||||
|
|
Loading…
Reference in New Issue