summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
Diffstat (limited to 'cui')
-rw-r--r--cui/source/dialogs/cuicharmap.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/cui/source/dialogs/cuicharmap.cxx b/cui/source/dialogs/cuicharmap.cxx
index b2ac8ee93b9e..a7f8ae6eacf3 100644
--- a/cui/source/dialogs/cuicharmap.cxx
+++ b/cui/source/dialogs/cuicharmap.cxx
@@ -670,10 +670,9 @@ void SvxCharacterMap::setCharName(char decimal[])
{
int nDecimalValue = std::stoi(decimal);
char buffer[100];
- UErrorCode errorCode;
/* get the character name */
- errorCode=U_ZERO_ERROR;
+ UErrorCode errorCode = U_ZERO_ERROR;
u_charName((UChar32)nDecimalValue, U_UNICODE_CHAR_NAME, buffer, sizeof(buffer), &errorCode);
m_pCharName->SetText(OUString::createFromAscii(buffer));
}