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.