diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-04-11 20:37:10 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-11 20:37:10 +0100 |
commit | d30ee7f7cefdefd9eb6b5c7763482d4fbcdb6b7c (patch) | |
tree | c8abe086a1428ac08e948ed475d93982199a734c | |
parent | 36c84fa3fbd03e5f651ba9d81e321566c8fcdbd0 (diff) |
coverity#707812 Uninitialized scalar field
Change-Id: I04e65d6c0124a2f370ae006bbaa991d5e7753e12
-rw-r--r-- | filter/source/graphicfilter/icgm/chart.hxx | 50 |
1 files changed, 43 insertions, 7 deletions
diff --git a/filter/source/graphicfilter/icgm/chart.hxx b/filter/source/graphicfilter/icgm/chart.hxx index ca8c190df003..e91660e5d8c7 100644 --- a/filter/source/graphicfilter/icgm/chart.hxx +++ b/filter/source/graphicfilter/icgm/chart.hxx @@ -91,7 +91,7 @@ typedef struct TextEntry TextAttribute* pAttribute; } TextEntry; -typedef struct ZoneOption +struct ZoneOption { char nOverTitle; char nOverBody; @@ -105,18 +105,43 @@ typedef struct ZoneOption char nFFillc_Title; char nFFillc_Body; char nFFillc_Foot; -} ZoneOption; + ZoneOption() + : nOverTitle(0) + , nOverBody(0) + , nOverFoot(0) + , nFStyle_Title(0) + , nFStyle_Body(0) + , nFStyle_Foot(0) + , nFOutc_Title(0) + , nFOutc_Body(0) + , nFOutc_Foot(0) + , nFFillc_Title(0) + , nFFillc_Body(0) + , nFFillc_Foot(0) + { + } +}; -typedef struct BulletOption +struct BulletOption { char nBType; char nBSize; char nBColor; - sal_Int16 nBStart; + sal_Int16 nBStart; double nTMargin; double nBSpace; char nCPlace; -} BulletOption; + BulletOption() + : nBType(0) + , nBSize(0) + , nBColor(0) + , nBStart(0) + , nTMargin(0) + , nBSpace(0) + , nCPlace(0) + { + } +}; typedef struct BulDef { @@ -131,7 +156,7 @@ typedef struct BulletLines BulDef nBulDef[ 48 ]; } BulletLines; -typedef struct IntSettings +struct IntSettings { sal_uInt16 nCountry; sal_uInt16 nDateFormat; @@ -141,7 +166,18 @@ typedef struct IntSettings sal_uInt16 nNumSeps; sal_uInt16 nCurrencyFormat; char nCurrencySymbol[ 5 ]; -} IntSettings; + IntSettings() + : nCountry(0) + , nDateFormat(0) + , nDateSep(0) + , nTimeFormat(0) + , nTimeSep(0) + , nNumSeps(0) + , nCurrencyFormat(0) + { + memset (nCurrencySymbol, 0, sizeof(nCurrencySymbol)); + } +}; typedef struct PageOrientDim { |