summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-07-28 11:28:48 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-07-28 11:28:48 +0100
commit3fea681c48dbb5ca599d78ae219785b90a13f2a6 (patch)
treea9e7f4b36463357ca6c0a6169806d19e5c57fce0 /cui
parent43d65d1ab81a278e1352f64def9ca63b9e7dfab9 (diff)
declare at init point
Change-Id: I986352cd2db4a9bd794ec25fbef9168be08a70ce
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));
}