summaryrefslogtreecommitdiffstats
path: root/sd
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2016-11-01 11:44:15 +0100
committerJochen Nitschke <j.nitschke+logerrit@ok.de>2016-11-01 18:44:20 +0000
commit8826771e8398063018935c38039c05faf4c993a3 (patch)
treef726abbbc99a3a1c39c726a47f5f121573ab1c8b /sd
parentAdded 22 pt_PT autocorrect words (diff)
downloadcore-8826771e8398063018935c38039c05faf4c993a3.tar.gz
core-8826771e8398063018935c38039c05faf4c993a3.zip
style fixes for cppcheck noExplicitConstructor
Change-Id: I2a690caea7656f2a18beb6d09f53154178a30f34 Reviewed-on: https://gerrit.libreoffice.org/30460 Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de> Tested-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/inc/optsitem.hxx4
-rw-r--r--sd/source/ui/unoidl/unocpres.hxx2
-rw-r--r--sd/source/ui/view/ViewShellManager.cxx2
3 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/inc/optsitem.hxx b/sd/source/ui/inc/optsitem.hxx
index cde1ed3eae17..200415af9e06 100644
--- a/sd/source/ui/inc/optsitem.hxx
+++ b/sd/source/ui/inc/optsitem.hxx
@@ -469,7 +469,7 @@ class SdOptionsGridItem : public SvxGridItem
{
public:
- SdOptionsGridItem( SdOptions* pOpts );
+ explicit SdOptionsGridItem( SdOptions* pOpts );
void SetOptions( SdOptions* pOpts ) const;
};
@@ -563,7 +563,7 @@ class SD_DLLPUBLIC SdOptionsPrintItem : public SfxPoolItem
public:
explicit SdOptionsPrintItem();
- SdOptionsPrintItem( SdOptions* pOpts );
+ explicit SdOptionsPrintItem( SdOptions* pOpts );
virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
virtual bool operator==( const SfxPoolItem& ) const override;
diff --git a/sd/source/ui/unoidl/unocpres.hxx b/sd/source/ui/unoidl/unocpres.hxx
index 493c5ddccac7..c04ebb7f6a62 100644
--- a/sd/source/ui/unoidl/unocpres.hxx
+++ b/sd/source/ui/unoidl/unocpres.hxx
@@ -50,7 +50,7 @@ private:
public:
SdXCustomPresentation() throw();
- SdXCustomPresentation( SdCustomShow* mpSdCustomShow) throw();
+ explicit SdXCustomPresentation( SdCustomShow* mpSdCustomShow ) throw();
virtual ~SdXCustomPresentation() throw() override;
// internal
diff --git a/sd/source/ui/view/ViewShellManager.cxx b/sd/source/ui/view/ViewShellManager.cxx
index a95e27d872a8..1d11b149f705 100644
--- a/sd/source/ui/view/ViewShellManager.cxx
+++ b/sd/source/ui/view/ViewShellManager.cxx
@@ -55,7 +55,7 @@ public:
bool mbIsListenerAddedToWindow;
ShellDescriptor ();
- ShellDescriptor (ShellId nId);
+ explicit ShellDescriptor (ShellId nId);
ShellDescriptor (const ShellDescriptor& rDescriptor);
ShellDescriptor& operator= (const ShellDescriptor& rDescriptor);
bool IsMainViewShell() const;