diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-04-22 10:56:50 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-22 11:39:22 +0100 |
commit | d52b0640f413521a782673834f1142bcf3053e70 (patch) | |
tree | 960eac3f2364caae6abaad529384365f46c3c341 /include/svx/svdtrans.hxx | |
parent | 10382948e636072cd31900f8ae8c74f29887633a (diff) |
coverity#708340 Uninitialized scalar field
Change-Id: I1ad1777492f94e7a4162382d9d68e0032aaee460
Diffstat (limited to 'include/svx/svdtrans.hxx')
-rw-r--r-- | include/svx/svdtrans.hxx | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/include/svx/svdtrans.hxx b/include/svx/svdtrans.hxx index 3cd736c63233..fa6319f7ef9e 100644 --- a/include/svx/svdtrans.hxx +++ b/include/svx/svdtrans.hxx @@ -280,7 +280,19 @@ private: SVX_DLLPRIVATE void Undirty(); SVX_DLLPRIVATE void ForceUndirty() const { if (bDirty) ((SdrFormatter*)this)->Undirty(); } public: - SdrFormatter(MapUnit eSrc, MapUnit eDst) { eSrcMU=eSrc; bSrcFU=false; eDstMU=eDst; bDstFU=false; bDirty=true; } + SdrFormatter(MapUnit eSrc, MapUnit eDst) + : nMul_(0) + , nDiv_(0) + , nKomma_(0) + , bSrcFU(false) + , bDstFU(false) + , bDirty(true) + , eSrcMU(eSrc) + , eDstMU(eDst) + , eSrcFU(FUNIT_NONE) + , eDstFU(FUNIT_NONE) + { + } SdrFormatter(MapUnit eSrc, FieldUnit eDst) { eSrcMU=eSrc; bSrcFU=false; eDstFU=eDst; bDstFU=true; bDirty=true; } SdrFormatter(FieldUnit eSrc, MapUnit eDst) { eSrcFU=eSrc; bSrcFU=true; eDstMU=eDst; bDstFU=false; bDirty=true; } SdrFormatter(FieldUnit eSrc, FieldUnit eDst) { eSrcFU=eSrc; bSrcFU=true; eDstFU=eDst; bDstFU=true; bDirty=true; } |