[Libreoffice-commits] .: sc/source

Julien Nabet serval2412 at kemper.freedesktop.org
Sun Mar 18 02:49:10 PDT 2012


 sc/source/ui/unoobj/filtuno.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit fa2cccb7cb334bb78bab6fd02b08021a2a94f201
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sun Mar 18 10:47:43 2012 +0100

    Reduce scope of nChar

diff --git a/sc/source/ui/unoobj/filtuno.cxx b/sc/source/ui/unoobj/filtuno.cxx
index 4fe9f0f..16fb7ed 100644
--- a/sc/source/ui/unoobj/filtuno.cxx
+++ b/sc/source/ui/unoobj/filtuno.cxx
@@ -82,7 +82,6 @@ SC_SIMPLE_SERVICE_INFO( ScFilterOptionsObj, SCFILTEROPTIONSOBJ_IMPLNAME, SCFILTE
 
 static void load_CharSet( rtl_TextEncoding &nCharSet, bool bExport )
 {
-    sal_Int32 nChar = 0;
     Sequence<Any> aValues;
     const Any *pProperties;
     Sequence<OUString> aNames(1);
@@ -99,6 +98,7 @@ static void load_CharSet( rtl_TextEncoding &nCharSet, bool bExport )
 
     if( pProperties[0].hasValue() )
     {
+        sal_Int32 nChar = 0;
         pProperties[0] >>= nChar;
         if( nChar >= 0)
         {


More information about the Libreoffice-commits mailing list