From 2645b1979365085edf4a94500f2c610bfc4e668b Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 19 Dec 2014 09:52:39 +0000 Subject: valgrind: initialize these Change-Id: I6440832fe508689ffa8e20fa17827528331e3585 --- sc/source/filter/excel/xistring.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sc/source/filter/excel') diff --git a/sc/source/filter/excel/xistring.cxx b/sc/source/filter/excel/xistring.cxx index c4165dd8b9c8..e04f4d59ec9e 100644 --- a/sc/source/filter/excel/xistring.cxx +++ b/sc/source/filter/excel/xistring.cxx @@ -118,7 +118,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 ); } @@ -127,7 +127,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 ); } @@ -142,7 +142,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 ); -- cgit