diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-04-28 09:47:46 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-28 10:31:04 +0100 |
commit | c7a53e6320d6b21ad29a0572f87d8ccc36549c15 (patch) | |
tree | a3c343522717b21d3c1809fa2ec9dd9e1d700d0f /vcl | |
parent | ce728a2ffa50455453ef83edf75112c525473a2d (diff) |
coverity#708319 Uninitialized scalar field
Change-Id: I8f817ba8fc286979f666ad06f4fe21f4703b4652
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/filter/wmf/winmtf.hxx | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/vcl/source/filter/wmf/winmtf.hxx b/vcl/source/filter/wmf/winmtf.hxx index 52b18483c32d..dfda4599ac5e 100644 --- a/vcl/source/filter/wmf/winmtf.hxx +++ b/vcl/source/filter/wmf/winmtf.hxx @@ -775,7 +775,7 @@ protected: class EnhWMFReader : public WinMtf { bool bRecordPath; - sal_Int32 nRecordCount; + sal_Int32 nRecordCount; bool bEMFPlus; bool ReadHeader(); @@ -783,18 +783,17 @@ class EnhWMFReader : public WinMtf Rectangle ReadRectangle( sal_Int32, sal_Int32, sal_Int32, sal_Int32 ); public: - EnhWMFReader( - SvStream& rStreamWMF, - GDIMetaFile& rGDIMetaFile, - FilterConfigItem* pConfigItem = NULL - ) - : WinMtf( new WinMtfOutput( rGDIMetaFile ) - , rStreamWMF - , pConfigItem ) - , bRecordPath( false ) - , bEMFPlus( false ) - {}; - ~EnhWMFReader(); + EnhWMFReader( + SvStream& rStreamWMF, + GDIMetaFile& rGDIMetaFile, + FilterConfigItem* pConfigItem = NULL) + : WinMtf(new WinMtfOutput(rGDIMetaFile), rStreamWMF , pConfigItem) + , bRecordPath(false) + , nRecordCount(0) + , bEMFPlus(false) + { + } + ~EnhWMFReader(); bool ReadEnhWMF(); void ReadEMFPlusComment(sal_uInt32 length, bool& bHaveDC); |