diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-07-28 11:28:48 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-07-28 11:28:48 +0100 |
commit | 3fea681c48dbb5ca599d78ae219785b90a13f2a6 (patch) | |
tree | a9e7f4b36463357ca6c0a6169806d19e5c57fce0 /cui | |
parent | 43d65d1ab81a278e1352f64def9ca63b9e7dfab9 (diff) |
declare at init point
Change-Id: I986352cd2db4a9bd794ec25fbef9168be08a70ce
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/cuicharmap.cxx | 3 |
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)); } |