summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/filter/excel/xistring.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/filter/excel/xistring.cxx b/sc/source/filter/excel/xistring.cxx
index 6bb003f33d68..dc903c5727ac 100644
--- a/sc/source/filter/excel/xistring.cxx
+++ b/sc/source/filter/excel/xistring.cxx
@@ -120,7 +120,7 @@ void XclImpString::ReadFormats( XclImpStream& rStrm, XclFormatRunVec& rFormats,
{
for( sal_uInt16 nIdx = 0; nIdx < nRunCount; ++nIdx )
{
- sal_uInt16 nChar, nFontIdx;
+ sal_uInt16 nChar(0), nFontIdx(0);
rStrm >> nChar >> nFontIdx;
AppendFormat( rFormats, nChar, nFontIdx );
}
@@ -129,7 +129,7 @@ void XclImpString::ReadFormats( XclImpStream& rStrm, XclFormatRunVec& rFormats,
{
for( sal_uInt16 nIdx = 0; nIdx < nRunCount; ++nIdx )
{
- sal_uInt8 nChar, nFontIdx;
+ sal_uInt8 nChar(0), nFontIdx(0);
rStrm >> nChar >> nFontIdx;
AppendFormat( rFormats, nChar, nFontIdx );
}
@@ -144,7 +144,7 @@ void XclImpString::ReadObjFormats( XclImpStream& rStrm, XclFormatRunVec& rFormat
rFormats.reserve( nRunCount );
for( sal_uInt16 nIdx = 0; nIdx < nRunCount; ++nIdx )
{
- sal_uInt16 nChar, nFontIdx;
+ sal_uInt16 nChar(0), nFontIdx(0);
rStrm >> nChar >> nFontIdx;
rStrm.Ignore( 4 );
AppendFormat( rFormats, nChar, nFontIdx );