diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-05-04 20:52:50 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-05-05 08:15:43 +0100 |
commit | a0791aa295a12439952140a3ac76d42ae2f05886 (patch) | |
tree | 001a395119b6eff81137eb96e38e305ca6f95332 | |
parent | b60142af8c3adce35e2c158e14815b1226a97fc2 (diff) |
cppcheck: noExplicitConstructor
Change-Id: I07aaf57291239e30b1600bd1061821b4759b8a0b
-rw-r--r-- | sd/source/ui/sidebar/MasterPageDescriptor.hxx | 8 | ||||
-rw-r--r-- | sd/source/ui/sidebar/PanelFactory.hxx | 2 | ||||
-rw-r--r-- | sd/source/ui/sidebar/PreviewValueSet.hxx | 2 | ||||
-rw-r--r-- | sd/source/ui/sidebar/RecentlyUsedMasterPages.hxx | 2 |
4 files changed, 7 insertions, 7 deletions
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<css::lang::XMultiServiceFactory>& rxFactory); static css::uno::Sequence<rtl::OUString> SAL_CALL getSupportedServiceNames(); - PanelFactory (const css::uno::Reference<css::uno::XComponentContext>& rxContext); + explicit PanelFactory (const css::uno::Reference<css::uno::XComponentContext>& 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; } |