summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2012-03-18 10:47:43 +0100
committerJulien Nabet <serval2412@yahoo.fr>2012-03-18 10:47:43 +0100
commitfa2cccb7cb334bb78bab6fd02b08021a2a94f201 (patch)
tree18a9c3dd1ca982b4a3b2b6143f63d1ea10a4b712
parent89d3de59abdd218750d78bbf80a6f07f7a13f31c (diff)
Reduce scope of nChar
-rw-r--r--sc/source/ui/unoobj/filtuno.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/unoobj/filtuno.cxx b/sc/source/ui/unoobj/filtuno.cxx
index 4fe9f0fd7cc5..16fb7edaa6c2 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)
{