diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2011-12-16 12:39:39 -0600 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2011-12-16 12:40:06 -0600 |
commit | bacafe9a07cb2af737b99641efc9cddf55340837 (patch) | |
tree | 05b5fc39b99351d46b40507409f26edb51208213 /sc | |
parent | MacOSX build breaker for MacOSX (diff) | |
download | core-bacafe9a07cb2af737b99641efc9cddf55340837.tar.gz core-bacafe9a07cb2af737b99641efc9cddf55340837.zip |
WaE Mac unitialized value false positive
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/unoobj/filtuno.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/source/ui/unoobj/filtuno.cxx b/sc/source/ui/unoobj/filtuno.cxx index 6c1a65172668..4fe9f0fd7cc5 100644 --- a/sc/source/ui/unoobj/filtuno.cxx +++ b/sc/source/ui/unoobj/filtuno.cxx @@ -82,7 +82,7 @@ SC_SIMPLE_SERVICE_INFO( ScFilterOptionsObj, SCFILTEROPTIONSOBJ_IMPLNAME, SCFILTE static void load_CharSet( rtl_TextEncoding &nCharSet, bool bExport ) { - sal_Int32 nChar; + sal_Int32 nChar = 0; Sequence<Any> aValues; const Any *pProperties; Sequence<OUString> aNames(1); @@ -101,7 +101,9 @@ static void load_CharSet( rtl_TextEncoding &nCharSet, bool bExport ) { pProperties[0] >>= nChar; if( nChar >= 0) + { nCharSet = (rtl_TextEncoding) nChar; + } } } |