summaryrefslogtreecommitdiff
path: root/sc/source/filter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-12-19 09:52:39 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-12-19 09:52:39 +0000
commit2645b1979365085edf4a94500f2c610bfc4e668b (patch)
tree26fd4c152c32222e8abee951e1861adeb876e443 /sc/source/filter
parentd584db0f8972fe7d4593b3f1538a967798e0f0d5 (diff)
valgrind: initialize these
Change-Id: I6440832fe508689ffa8e20fa17827528331e3585
Diffstat (limited to 'sc/source/filter')
-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 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 );