Fix error: 'NXWidgets::CTextBox::insertText' hides overloaded virtual functio

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-11-04 18:57:36 +08:00 committed by Petro Karashchenko
parent e1cc1199bb
commit a95d34c346
2 changed files with 2 additions and 2 deletions

View File

@ -179,7 +179,7 @@ void CLabel::appendText(const CNxString &text)
* @param index Index at which to insert the text. * @param index Index at which to insert the text.
*/ */
void CLabel::insertText(const CNxString &text, const int index) void CLabel::insertText(const CNxString &text, const unsigned int index)
{ {
m_text.insert(text, index); m_text.insert(text, index);
onTextChange(); onTextChange();

View File

@ -285,7 +285,7 @@ namespace NXWidgets
* @param index Index at which to insert the text. * @param index Index at which to insert the text.
*/ */
virtual void insertText(const CNxString &text, const int index); virtual void insertText(const CNxString &text, const unsigned int index);
/** /**
* Control the highlight state. * Control the highlight state.