diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-04-11 13:38:46 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-11 14:11:21 +0100 |
commit | 711470cdee4019180150dccbdb7b826f678ad025 (patch) | |
tree | 55669be99d15b20c731c48bbe0450fa640eb3a76 /lotuswordpro | |
parent | 013cca1e82c5cbb2a8940bc6b51b39a05371cef1 (diff) |
coverity#738697 Uninitialized scalar field
Change-Id: I5edf11a51b4d32a1a7257857b03ce7814af442e3
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwpsdwdrawheader.hxx | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/lotuswordpro/source/filter/lwpsdwdrawheader.hxx b/lotuswordpro/source/filter/lwpsdwdrawheader.hxx index 519411347bdf..a755dfac262e 100644 --- a/lotuswordpro/source/filter/lwpsdwdrawheader.hxx +++ b/lotuswordpro/source/filter/lwpsdwdrawheader.hxx @@ -187,19 +187,30 @@ struct SdwClosedObjStyleRec SdwColor aBackColor; sal_uInt16 nFillType; sal_uInt8 pFillPattern[8]; + SdwClosedObjStyleRec() + : nLineWidth(0) + , nLineStyle(0) + , nFillType(0) + { + memset(pFillPattern, 0, sizeof(pFillPattern)); + } }; struct SdwDrawObjHeader { -// sal_uInt8 nType -// sal_uInt8 nFlags; sal_uInt16 nRecLen; sal_Int16 nLeft; sal_Int16 nTop; sal_Int16 nRight; sal_Int16 nBottom; -// sal_uInt16 nextObj; -// sal_uInt16 prevObj; + SdwDrawObjHeader() + : nRecLen(0) + , nLeft(0) + , nTop(0) + , nRight(0) + , nBottom(0) + { + } }; struct SdwLineRecord |