summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-11 11:11:14 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-11 11:52:30 +0100
commit325e586dd0b4ffd59e03a61e669a106b6d4a00ce (patch)
tree043cc2fa837ac5fbef2196efd1b2a02dc4f741af /editeng
parent623fa779b67b39b0a0afd5a2345a331748ca780f (diff)
coverity#707758 Uninitialized scalar field
Change-Id: I2f123b0be283b1cb7d890f0e2318dabb5a5930ec
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/items/numitem.cxx11
1 files changed, 8 insertions, 3 deletions
diff --git a/editeng/source/items/numitem.cxx b/editeng/source/items/numitem.cxx
index 6968d3bd9ecc..55b68c0ea350 100644
--- a/editeng/source/items/numitem.cxx
+++ b/editeng/source/items/numitem.cxx
@@ -178,9 +178,14 @@ SvxNumberFormat::SvxNumberFormat(const SvxNumberFormat& rFormat) :
}
SvxNumberFormat::SvxNumberFormat( SvStream &rStream )
+ : nStart(0)
+ , nFirstLineOffset(0)
+ , nAbsLSpace(0)
+ , nLSpace(0)
+ , nCharTextDistance(0)
{
- sal_uInt16 nTmp16;
- sal_Int32 nTmp32;
+ sal_uInt16 nTmp16(0);
+ sal_Int32 nTmp32(0);
rStream.ReadUInt16( nTmp16 ); // Version number
rStream.ReadUInt16( nTmp16 ); SetNumberingType( nTmp16 );
@@ -228,8 +233,8 @@ SvxNumberFormat::SvxNumberFormat( SvStream &rStream )
rStream.ReadInt32( nTmp32 ); mnListtabPos = nTmp32;
rStream.ReadInt32( nTmp32 ); mnFirstLineIndent = nTmp32;
rStream.ReadInt32( nTmp32 ); mnIndentAt = nTmp32;
-
}
+
SvxNumberFormat::~SvxNumberFormat()
{
delete pGraphicBrush;