From a95d34c3469bb29fbc140f741bb2c9cdf962c5cc Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Fri, 4 Nov 2022 18:57:36 +0800 Subject: [PATCH] Fix error: 'NXWidgets::CTextBox::insertText' hides overloaded virtual functio Signed-off-by: Xiang Xiao --- graphics/nxwidgets/src/clabel.cxx | 2 +- include/graphics/nxwidgets/clabel.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/graphics/nxwidgets/src/clabel.cxx b/graphics/nxwidgets/src/clabel.cxx index 2523e1084..f07a69b7b 100644 --- a/graphics/nxwidgets/src/clabel.cxx +++ b/graphics/nxwidgets/src/clabel.cxx @@ -179,7 +179,7 @@ void CLabel::appendText(const CNxString &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); onTextChange(); diff --git a/include/graphics/nxwidgets/clabel.hxx b/include/graphics/nxwidgets/clabel.hxx index 91bcdde76..d5cc5da36 100644 --- a/include/graphics/nxwidgets/clabel.hxx +++ b/include/graphics/nxwidgets/clabel.hxx @@ -285,7 +285,7 @@ namespace NXWidgets * @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.