diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2016-05-13 20:56:38 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-14 07:42:58 +0000 |
commit | b00d1e37c8d178f8199a45d1c9f08cae6bcef698 (patch) | |
tree | 6201e2c33c79aa3f8d499eaf08024ec5dc6ba2cd /vcl/quartz | |
parent | 442387bdf493aa6a752fd2531507625dc9e5a4fc (diff) |
cppcheck: uninitialised members in vcl
and remove clear() on std::vector types in ctors
Change-Id: I8e239676d46e30049d4d5886a5b8de99cadd3f45
Reviewed-on: https://gerrit.libreoffice.org/24983
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl/quartz')
-rw-r--r-- | vcl/quartz/salbmp.cxx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/vcl/quartz/salbmp.cxx b/vcl/quartz/salbmp.cxx index 4a1a9f00404a..48906a399429 100644 --- a/vcl/quartz/salbmp.cxx +++ b/vcl/quartz/salbmp.cxx @@ -445,7 +445,8 @@ private: public: explicit ImplPixelFormat8( const BitmapPalette& rPalette ) - : mrPalette( rPalette ) + : pData(nullptr) + , mrPalette(rPalette) { } virtual void StartLine( sal_uInt8* pLine ) override { pData = pLine; } @@ -476,7 +477,10 @@ private: public: explicit ImplPixelFormat4( const BitmapPalette& rPalette ) - : mrPalette( rPalette ) + : pData(nullptr) + , mrPalette(rPalette) + , mnX(0) + , mnShift(0) { } virtual void SkipPixel( sal_uInt32 nPixel ) override @@ -521,7 +525,9 @@ private: public: explicit ImplPixelFormat1( const BitmapPalette& rPalette ) - : mrPalette( rPalette ) + : pData(nullptr) + , mrPalette(rPalette) + , mnX(0) { } virtual void SkipPixel( sal_uInt32 nPixel ) override |