From a0791aa295a12439952140a3ac76d42ae2f05886 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 4 May 2015 20:52:50 +0100 Subject: cppcheck: noExplicitConstructor Change-Id: I07aaf57291239e30b1600bd1061821b4759b8a0b --- sd/source/ui/sidebar/MasterPageDescriptor.hxx | 8 ++++---- sd/source/ui/sidebar/PanelFactory.hxx | 2 +- sd/source/ui/sidebar/PreviewValueSet.hxx | 2 +- sd/source/ui/sidebar/RecentlyUsedMasterPages.hxx | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'sd') diff --git a/sd/source/ui/sidebar/MasterPageDescriptor.hxx b/sd/source/ui/sidebar/MasterPageDescriptor.hxx index 7636cf6b4a8d..a002203b897a 100644 --- a/sd/source/ui/sidebar/MasterPageDescriptor.hxx +++ b/sd/source/ui/sidebar/MasterPageDescriptor.hxx @@ -204,21 +204,21 @@ public: class URLComparator { public: OUString msURL; - URLComparator (const OUString& sURL); + explicit URLComparator (const OUString& sURL); bool operator() (const SharedMasterPageDescriptor& rDescriptor); }; class StyleNameComparator { public: OUString msStyleName; - StyleNameComparator (const OUString& sStyleName); + explicit StyleNameComparator (const OUString& sStyleName); bool operator() (const SharedMasterPageDescriptor& rDescriptor); }; class PageObjectComparator { public: const SdPage* mpMasterPage; - PageObjectComparator (const SdPage* pPageObject); + explicit PageObjectComparator (const SdPage* pPageObject); bool operator() (const SharedMasterPageDescriptor& rDescriptor); }; class AllComparator { public: - AllComparator(const SharedMasterPageDescriptor& rDescriptor); + explicit AllComparator(const SharedMasterPageDescriptor& rDescriptor); bool operator() (const SharedMasterPageDescriptor& rDescriptor); private: SharedMasterPageDescriptor mpDescriptor; diff --git a/sd/source/ui/sidebar/PanelFactory.hxx b/sd/source/ui/sidebar/PanelFactory.hxx index 6188e3033de1..654fd9d72771 100644 --- a/sd/source/ui/sidebar/PanelFactory.hxx +++ b/sd/source/ui/sidebar/PanelFactory.hxx @@ -57,7 +57,7 @@ public: const css::uno::Reference& rxFactory); static css::uno::Sequence SAL_CALL getSupportedServiceNames(); - PanelFactory (const css::uno::Reference& rxContext); + explicit PanelFactory (const css::uno::Reference& rxContext); virtual ~PanelFactory(); virtual void SAL_CALL disposing() SAL_OVERRIDE; diff --git a/sd/source/ui/sidebar/PreviewValueSet.hxx b/sd/source/ui/sidebar/PreviewValueSet.hxx index c8629f6730ba..b48c840add33 100644 --- a/sd/source/ui/sidebar/PreviewValueSet.hxx +++ b/sd/source/ui/sidebar/PreviewValueSet.hxx @@ -30,7 +30,7 @@ class PreviewValueSet : public ValueSet { public: - PreviewValueSet (vcl::Window* pParent); + explicit PreviewValueSet (vcl::Window* pParent); virtual ~PreviewValueSet(); void SetRightMouseClickHandler (const Link<>& rLink); diff --git a/sd/source/ui/sidebar/RecentlyUsedMasterPages.hxx b/sd/source/ui/sidebar/RecentlyUsedMasterPages.hxx index f4d18099ca43..c4da8a3986e3 100644 --- a/sd/source/ui/sidebar/RecentlyUsedMasterPages.hxx +++ b/sd/source/ui/sidebar/RecentlyUsedMasterPages.hxx @@ -69,7 +69,7 @@ private: class TokenComparator { public: - TokenComparator(::sd::sidebar::MasterPageContainer::Token aToken) + explicit TokenComparator(::sd::sidebar::MasterPageContainer::Token aToken) : maToken(aToken) {} bool operator () (const Descriptor& rDescriptor) { return maToken==rDescriptor.maToken; } -- cgit