diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2015-10-25 17:33:13 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-10-26 05:47:06 +0000 |
commit | e6dce260833ecddf0da9c85132665a7759fc1f17 (patch) | |
tree | 1deb554cc06bd028335f986303043a5cae757cd2 /sd/source/ui/framework | |
parent | bebc20c62be2df2cf2741fb82945ce6b631d2fe5 (diff) |
cppcheck:noExplicitConstructor
Change-Id: I06f33af242c60e0349417ceab3ca4a6d47cd402d
Reviewed-on: https://gerrit.libreoffice.org/19589
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sd/source/ui/framework')
11 files changed, 14 insertions, 14 deletions
diff --git a/sd/source/ui/framework/configuration/ConfigurationControllerBroadcaster.hxx b/sd/source/ui/framework/configuration/ConfigurationControllerBroadcaster.hxx index 049a8703ac0b..c1cc172999b3 100644 --- a/sd/source/ui/framework/configuration/ConfigurationControllerBroadcaster.hxx +++ b/sd/source/ui/framework/configuration/ConfigurationControllerBroadcaster.hxx @@ -43,7 +43,7 @@ class ConfigurationControllerBroadcaster public: /** The given controller is used as origin of thrown exceptions. */ - ConfigurationControllerBroadcaster ( + explicit ConfigurationControllerBroadcaster ( const css::uno::Reference< css::drawing::framework::XConfigurationController>& rxController); diff --git a/sd/source/ui/framework/configuration/ConfigurationUpdater.cxx b/sd/source/ui/framework/configuration/ConfigurationUpdater.cxx index e9e23f08f6d2..9d110e15b00f 100644 --- a/sd/source/ui/framework/configuration/ConfigurationUpdater.cxx +++ b/sd/source/ui/framework/configuration/ConfigurationUpdater.cxx @@ -50,7 +50,7 @@ namespace sd { namespace framework { class ConfigurationUpdaterLock { public: - ConfigurationUpdaterLock (ConfigurationUpdater& rUpdater) + explicit ConfigurationUpdaterLock (ConfigurationUpdater& rUpdater) : mrUpdater(rUpdater) { mrUpdater.LockUpdates(); } ~ConfigurationUpdaterLock() { mrUpdater.UnlockUpdates(); } private: diff --git a/sd/source/ui/framework/configuration/ResourceFactoryManager.hxx b/sd/source/ui/framework/configuration/ResourceFactoryManager.hxx index ffcf61e0fc47..6152e7861bc6 100644 --- a/sd/source/ui/framework/configuration/ResourceFactoryManager.hxx +++ b/sd/source/ui/framework/configuration/ResourceFactoryManager.hxx @@ -39,7 +39,7 @@ namespace sd { namespace framework { class ResourceFactoryManager { public: - ResourceFactoryManager ( + explicit ResourceFactoryManager ( const css::uno::Reference<css::drawing::framework::XControllerManager>& rxManager); ~ResourceFactoryManager(); diff --git a/sd/source/ui/framework/factories/BasicPaneFactory.hxx b/sd/source/ui/framework/factories/BasicPaneFactory.hxx index a91bee8198b4..273e74e8ad96 100644 --- a/sd/source/ui/framework/factories/BasicPaneFactory.hxx +++ b/sd/source/ui/framework/factories/BasicPaneFactory.hxx @@ -64,7 +64,7 @@ class BasicPaneFactory public BasicPaneFactoryInterfaceBase { public: - BasicPaneFactory ( + explicit BasicPaneFactory ( const css::uno::Reference<css::uno::XComponentContext>& rxContext); virtual ~BasicPaneFactory(); diff --git a/sd/source/ui/framework/factories/BasicToolBarFactory.hxx b/sd/source/ui/framework/factories/BasicToolBarFactory.hxx index d44a5d88c976..4a79431373ec 100644 --- a/sd/source/ui/framework/factories/BasicToolBarFactory.hxx +++ b/sd/source/ui/framework/factories/BasicToolBarFactory.hxx @@ -56,7 +56,7 @@ class BasicToolBarFactory public BasicToolBarFactoryInterfaceBase { public: - BasicToolBarFactory ( + explicit BasicToolBarFactory ( const css::uno::Reference<com::sun::star::uno::XComponentContext>& rxContext); virtual ~BasicToolBarFactory(); diff --git a/sd/source/ui/framework/factories/BasicViewFactory.hxx b/sd/source/ui/framework/factories/BasicViewFactory.hxx index 2fc4658dbb6e..1d6eecc6343a 100644 --- a/sd/source/ui/framework/factories/BasicViewFactory.hxx +++ b/sd/source/ui/framework/factories/BasicViewFactory.hxx @@ -71,7 +71,7 @@ class BasicViewFactory public BasicViewFactoryInterfaceBase { public: - BasicViewFactory ( + explicit BasicViewFactory ( const css::uno::Reference<css::uno::XComponentContext>& rxContext); virtual ~BasicViewFactory(); diff --git a/sd/source/ui/framework/factories/PresentationFactory.cxx b/sd/source/ui/framework/factories/PresentationFactory.cxx index 8a9e402a3ea2..c2efde53fd9f 100644 --- a/sd/source/ui/framework/factories/PresentationFactory.cxx +++ b/sd/source/ui/framework/factories/PresentationFactory.cxx @@ -46,7 +46,7 @@ class PresentationFactoryProvider public PresentationFactoryProviderInterfaceBase { public: - PresentationFactoryProvider (const Reference<XComponentContext>& rxContext); + explicit PresentationFactoryProvider (const Reference<XComponentContext>& rxContext); virtual ~PresentationFactoryProvider(); virtual void SAL_CALL disposing() override; @@ -69,7 +69,7 @@ class PresentationView public PresentationViewInterfaceBase { public: - PresentationView (const Reference<XResourceId>& rxViewId) + explicit PresentationView (const Reference<XResourceId>& rxViewId) : PresentationViewInterfaceBase(maMutex),mxResourceId(rxViewId) {}; virtual ~PresentationView() {}; diff --git a/sd/source/ui/framework/module/CenterViewFocusModule.hxx b/sd/source/ui/framework/module/CenterViewFocusModule.hxx index deaf4c2c6dc5..8cf9dd07519e 100644 --- a/sd/source/ui/framework/module/CenterViewFocusModule.hxx +++ b/sd/source/ui/framework/module/CenterViewFocusModule.hxx @@ -54,7 +54,7 @@ class CenterViewFocusModule public CenterViewFocusModuleInterfaceBase { public: - CenterViewFocusModule ( + explicit CenterViewFocusModule ( ::com::sun::star::uno::Reference<com::sun::star::frame::XController>& rxController); virtual ~CenterViewFocusModule(); diff --git a/sd/source/ui/framework/module/ShellStackGuard.hxx b/sd/source/ui/framework/module/ShellStackGuard.hxx index 125087f800a1..9e4b738533eb 100644 --- a/sd/source/ui/framework/module/ShellStackGuard.hxx +++ b/sd/source/ui/framework/module/ShellStackGuard.hxx @@ -64,7 +64,7 @@ class ShellStackGuard public ShellStackGuardInterfaceBase { public: - ShellStackGuard (css::uno::Reference<css::frame::XController>& rxController); + explicit ShellStackGuard (css::uno::Reference<css::frame::XController>& rxController); virtual ~ShellStackGuard(); virtual void SAL_CALL disposing() override; diff --git a/sd/source/ui/framework/module/ToolBarModule.hxx b/sd/source/ui/framework/module/ToolBarModule.hxx index 33a25079eb2f..876362f032e4 100644 --- a/sd/source/ui/framework/module/ToolBarModule.hxx +++ b/sd/source/ui/framework/module/ToolBarModule.hxx @@ -54,7 +54,7 @@ public: @param rxController This is the access point to the drawing framework. */ - ToolBarModule ( + explicit ToolBarModule ( const css::uno::Reference<css::frame::XController>& rxController); virtual ~ToolBarModule(); diff --git a/sd/source/ui/framework/tools/FrameworkHelper.cxx b/sd/source/ui/framework/tools/FrameworkHelper.cxx index 1d081653ea34..1e19d650659b 100644 --- a/sd/source/ui/framework/tools/FrameworkHelper.cxx +++ b/sd/source/ui/framework/tools/FrameworkHelper.cxx @@ -168,7 +168,7 @@ namespace { class FrameworkHelperResourceIdFilter { public: - FrameworkHelperResourceIdFilter ( + explicit FrameworkHelperResourceIdFilter ( const css::uno::Reference<css::drawing::framework::XResourceId>& rxResourceId); bool operator() (const css::drawing::framework::ConfigurationChangeEvent& rEvent) { return mxResourceId.is() && rEvent.ResourceId.is() @@ -296,7 +296,7 @@ class FrameworkHelper::DisposeListener public FrameworkHelperDisposeListenerInterfaceBase { public: - DisposeListener (const ::std::shared_ptr<FrameworkHelper>& rpHelper); + explicit DisposeListener (const ::std::shared_ptr<FrameworkHelper>& rpHelper); virtual ~DisposeListener(); virtual void SAL_CALL disposing() override; @@ -650,7 +650,7 @@ void FrameworkHelper::RunOnResourceActivation( class FlagUpdater { public: - FlagUpdater (bool& rFlag) : mrFlag(rFlag) {} + explicit FlagUpdater (bool& rFlag) : mrFlag(rFlag) {} void operator() (bool) const {mrFlag = true;} private: bool& mrFlag; |