diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-09-07 09:33:18 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-09-07 09:56:07 +0100 |
commit | 267f401e2ad6e0094de39032671a3191772276ed (patch) | |
tree | be549a278ad37f2e3d10f3ab1be393d14461639a /drawinglayer | |
parent | b0f3024304bf4e7d9efcb539a49394945f052a51 (diff) |
cppcheck: noExplicitConstructor
Change-Id: I2a1add8cf526cdb305ad99ccb138454a88f2fdbd
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/source/attribute/materialattribute3d.cxx | 2 | ||||
-rw-r--r-- | drawinglayer/source/dumper/EnhancedShapeDumper.hxx | 6 | ||||
-rw-r--r-- | drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx | 2 |
3 files changed, 4 insertions, 6 deletions
diff --git a/drawinglayer/source/attribute/materialattribute3d.cxx b/drawinglayer/source/attribute/materialattribute3d.cxx index 3d5fe22fa898..0d914facea4d 100644 --- a/drawinglayer/source/attribute/materialattribute3d.cxx +++ b/drawinglayer/source/attribute/materialattribute3d.cxx @@ -44,7 +44,7 @@ namespace drawinglayer { } - ImpMaterialAttribute3D(const basegfx::BColor& rColor) + explicit ImpMaterialAttribute3D(const basegfx::BColor& rColor) : maColor(rColor), maSpecular(1.0, 1.0, 1.0), maEmission(), diff --git a/drawinglayer/source/dumper/EnhancedShapeDumper.hxx b/drawinglayer/source/dumper/EnhancedShapeDumper.hxx index e47750ee9b5e..7d17c9a893ca 100644 --- a/drawinglayer/source/dumper/EnhancedShapeDumper.hxx +++ b/drawinglayer/source/dumper/EnhancedShapeDumper.hxx @@ -34,11 +34,9 @@ class EnhancedShapeDumper { public: - EnhancedShapeDumper(xmlTextWriterPtr writer) - : - xmlWriter(writer) + explicit EnhancedShapeDumper(xmlTextWriterPtr writer) + : xmlWriter(writer) { - } // auxiliary functions diff --git a/drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx b/drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx index 843ba43ba1c8..f8484ef51b2e 100644 --- a/drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx +++ b/drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx @@ -53,7 +53,7 @@ namespace sal_uInt32 generateStepTime(sal_uInt32 nIndex) const; public: - animatedBitmapExPreparator(const Graphic& rGraphic); + explicit animatedBitmapExPreparator(const Graphic& rGraphic); sal_uInt32 count() const { return maSteps.size(); } sal_uInt32 loopCount() const { return (sal_uInt32)maAnimation.GetLoopCount(); } |