diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-12-19 09:52:39 +0000 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-01-05 16:01:53 +0100 |
commit | 76b878d66dfb464accc4d1ce83b0d1f5c1094abc (patch) | |
tree | 28697fad0fbe53889f4e94b8137f1f502f24cc94 | |
parent | f997c9fb5078d529f61eecb19f6b8ad0fc15314e (diff) |
valgrind: initialize these
Change-Id: I6440832fe508689ffa8e20fa17827528331e3585
(cherry picked from commit 2645b1979365085edf4a94500f2c610bfc4e668b)
-rw-r--r-- | sc/source/filter/excel/xistring.cxx | 6 |
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 ); |