diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-02-08 13:10:13 -0600 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-02-14 22:29:54 -0600 |
commit | f2cdfce269117e2c4be4eb34d27d9b517bc81760 (patch) | |
tree | 7ea82ee4fb817e3b514c9367ef78b79b063e6c38 /filter | |
parent | 1c20c67b5eae1ccc7a79e4b8a42b929dcd0e4859 (diff) |
coverity#707807-08-09 Unitialized scalar field
Change-Id: I0a4eea4f7e6fda224f081f69a88a87492032569d
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/graphicfilter/icgm/bundles.hxx | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/filter/source/graphicfilter/icgm/bundles.hxx b/filter/source/graphicfilter/icgm/bundles.hxx index 250c6bec21a9..08f17f2d4153 100644 --- a/filter/source/graphicfilter/icgm/bundles.hxx +++ b/filter/source/graphicfilter/icgm/bundles.hxx @@ -35,15 +35,19 @@ class Bundle public: void SetColor( sal_uInt32 nColor ) ; - sal_uInt32 GetColor() const; + sal_uInt32 GetColor() const; long GetIndex() const { return mnBundleIndex; } ; void SetIndex( long nBundleIndex ) { mnBundleIndex = nBundleIndex; } ; - Bundle() {}; + Bundle() + : mnBundleIndex( 0 ) + , mnColor( 0 ) + {}; + virtual Bundle* Clone() { return new Bundle( *this ); }; Bundle& operator=( Bundle& rBundle ); - virtual ~Bundle() {} ; + virtual ~Bundle() {} ; }; // --------------------------------------------------------------- @@ -73,7 +77,11 @@ public: MarkerType eMarkerType; double nMarkerSize; - MarkerBundle() {}; + MarkerBundle() + : eMarkerType( MT_POINT ) + , nMarkerSize( 0.0 ) + {}; + virtual Bundle* Clone() { return new MarkerBundle( *this ); } ; MarkerBundle& operator=( MarkerBundle& rMarkerBundle ); virtual ~MarkerBundle() {}; @@ -102,12 +110,18 @@ class TextBundle : public Bundle { public: - sal_uInt32 nTextFontIndex; + sal_uInt32 nTextFontIndex; TextPrecision eTextPrecision; double nCharacterExpansion; double nCharacterSpacing; - TextBundle() {}; + TextBundle() + : nTextFontIndex( 0 ) + , eTextPrecision( TPR_UNDEFINED ) + , nCharacterExpansion( 0.0 ) + , nCharacterSpacing( 0.0 ) + {}; + virtual Bundle* Clone() { return new TextBundle( *this ); } ; TextBundle& operator=( TextBundle& rTextBundle ); virtual ~TextBundle() {}; |