[Libreoffice-commits] core.git: cui/source
Caolán McNamara
caolanm at redhat.com
Fri Jul 28 10:30:29 UTC 2017
cui/source/dialogs/cuicharmap.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit 3fea681c48dbb5ca599d78ae219785b90a13f2a6
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Jul 28 11:28:48 2017 +0100
declare at init point
Change-Id: I986352cd2db4a9bd794ec25fbef9168be08a70ce
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));
}
More information about the Libreoffice-commits
mailing list