diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2016-04-29 12:47:39 +0200 |
---|---|---|
committer | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2016-04-29 11:54:37 +0000 |
commit | aafe8426051eff4394d9421a0f4c83bf9b7c5fdf (patch) | |
tree | e7a52a381473259343f542d501f2a7f3537ec0bf /filter/source/graphicfilter/ipict/ipict.cxx | |
parent | bc43165a473c774f6b9c762c465efe2273b4483a (diff) |
use initialization list
last commit to please cppcheck
m_bCreated in SdPublishingDesign is commented as unused
but is read and written by a raw stream to a 'designs.sod'
so something might break we remove it
Change-Id: Ie8f08a2354e247284e3aafee8097db29bcee8567
Reviewed-on: https://gerrit.libreoffice.org/24490
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Diffstat (limited to 'filter/source/graphicfilter/ipict/ipict.cxx')
-rw-r--r-- | filter/source/graphicfilter/ipict/ipict.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/filter/source/graphicfilter/ipict/ipict.cxx b/filter/source/graphicfilter/ipict/ipict.cxx index 29298b2c1bd1..188595fedc5d 100644 --- a/filter/source/graphicfilter/ipict/ipict.cxx +++ b/filter/source/graphicfilter/ipict/ipict.cxx @@ -38,11 +38,12 @@ namespace PictReaderInternal { class Pattern { public: //! constructor - Pattern() { - isColor = false; isRead = false; - penStyle=PEN_SOLID; brushStyle = BRUSH_SOLID; - nBitCount = 64; - } + Pattern() : penStyle(PEN_SOLID), + brushStyle(BRUSH_SOLID), + nBitCount(64), + isColor(false), + isRead(false) + {} //! reads black/white pattern from SvStream sal_uLong read(SvStream &stream); |