cui/source/dialogs/cuicharmap.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 3fea681c48dbb5ca599d78ae219785b90a13f2a6
Author: Caolán McNamara <caol...@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));
 }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to