graphics/nxwidgets: Fix type mismatches

Use int for getCursorPosition/moveCursorToPosition.
This commit is contained in:
YAMAMOTO Takashi 2020-11-13 13:05:10 +09:00 committed by Xiang Xiao
parent 10a0764175
commit cbec960c59
2 changed files with 4 additions and 4 deletions

View File

@ -312,7 +312,7 @@ void CScrollingTextBox::wrapCursor(bool wrap)
* @param position The new cursor position.
*/
void CScrollingTextBox::moveCursorToPosition(const int32_t position)
void CScrollingTextBox::moveCursorToPosition(const int position)
{
m_texbox->moveCursorToPosition(position);
m_scrollbar->redraw();
@ -325,7 +325,7 @@ void CScrollingTextBox::moveCursorToPosition(const int32_t position)
* @return position The cursor position.
*/
const int32_t CScrollingTextBox::getCursorPosition(void) const
const int CScrollingTextBox::getCursorPosition(void) const
{
return m_texbox->getCursorPosition();
}

View File

@ -317,7 +317,7 @@ namespace NXWidgets
* @param position The new cursor position.
*/
virtual void moveCursorToPosition(const int32_t position);
virtual void moveCursorToPosition(const int position);
/**
* Get the cursor position. This is the index within the string that
@ -326,7 +326,7 @@ namespace NXWidgets
* @return position The cursor position.
*/
virtual const int32_t getCursorPosition(void) const;
virtual const int getCursorPosition(void) const;
/**
* Insert text at the specified index.