diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-29 19:27:43 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-12-29 19:46:23 +0000 |
commit | bea8a7ad63e6e00c757909702f0439b2ffd3b48a (patch) | |
tree | 423bc1b62e0aedcb308ec26214ece158ae3fe76a /framework | |
parent | 79a1ba61e4753758f66ba25b128aeff96ea716c9 (diff) |
cppcheck: noExplicitConstructor
Change-Id: Ib43e53d5b6c9c130adb765ac9b769f58060ac640
Diffstat (limited to 'framework')
18 files changed, 20 insertions, 20 deletions
diff --git a/framework/source/accelerators/globalacceleratorconfiguration.cxx b/framework/source/accelerators/globalacceleratorconfiguration.cxx index 942c2f0d65ea..eb7ddedb34b7 100644 --- a/framework/source/accelerators/globalacceleratorconfiguration.cxx +++ b/framework/source/accelerators/globalacceleratorconfiguration.cxx @@ -52,7 +52,7 @@ public: @param xSMGR reference to an uno service manager, which is used internally. */ - GlobalAcceleratorConfiguration(const css::uno::Reference< css::uno::XComponentContext >& xContext); + explicit GlobalAcceleratorConfiguration(const css::uno::Reference< css::uno::XComponentContext >& xContext); /** TODO */ virtual ~GlobalAcceleratorConfiguration() {} diff --git a/framework/source/fwe/dispatch/interaction.cxx b/framework/source/fwe/dispatch/interaction.cxx index 1a0aabeaa207..f97b18bc3e3b 100644 --- a/framework/source/fwe/dispatch/interaction.cxx +++ b/framework/source/fwe/dispatch/interaction.cxx @@ -86,7 +86,7 @@ OUString SAL_CALL ContinuationFilterSelect::getFilter() throw( css::uno::Runtime class RequestFilterSelect_Impl : public ::cppu::WeakImplHelper< css::task::XInteractionRequest > { public: - RequestFilterSelect_Impl( const OUString& sURL ); + explicit RequestFilterSelect_Impl(const OUString& rURL); bool isAbort () const; OUString getFilter() const; diff --git a/framework/source/fwe/helper/documentundoguard.cxx b/framework/source/fwe/helper/documentundoguard.cxx index bd29d5d0932a..c65d94bf4caa 100644 --- a/framework/source/fwe/helper/documentundoguard.cxx +++ b/framework/source/fwe/helper/documentundoguard.cxx @@ -51,7 +51,7 @@ namespace framework class UndoManagerContextListener : public UndoManagerContextListener_Base { public: - UndoManagerContextListener( const Reference< XUndoManager >& i_undoManager ) + explicit UndoManagerContextListener( const Reference< XUndoManager >& i_undoManager ) :m_xUndoManager( i_undoManager ) ,m_nRelativeContextDepth( 0 ) ,m_documentDisposed( false ) diff --git a/framework/source/fwe/helper/undomanagerhelper.cxx b/framework/source/fwe/helper/undomanagerhelper.cxx index 91a7e44ba4da..952b17f21563 100644 --- a/framework/source/fwe/helper/undomanagerhelper.cxx +++ b/framework/source/fwe/helper/undomanagerhelper.cxx @@ -69,7 +69,7 @@ namespace framework class UndoActionWrapper : public SfxUndoAction { public: - UndoActionWrapper( + explicit UndoActionWrapper( Reference< XUndoAction > const& i_undoAction ); virtual ~UndoActionWrapper(); @@ -138,7 +138,7 @@ namespace framework class UndoManagerRequest : public ::comphelper::AnyEvent { public: - UndoManagerRequest( ::std::function<void ()> const& i_request ) + explicit UndoManagerRequest( ::std::function<void ()> const& i_request ) :m_request( i_request ) ,m_caughtException() ,m_finishCondition() @@ -211,7 +211,7 @@ namespace framework ::osl::Mutex& getMutex() { return m_aMutex; } public: - UndoManagerHelper_Impl( IUndoManagerImplementation& i_undoManagerImpl ) + explicit UndoManagerHelper_Impl( IUndoManagerImplementation& i_undoManagerImpl ) :m_aMutex() ,m_aQueueMutex() ,m_disposed( false ) diff --git a/framework/source/jobs/jobdispatch.cxx b/framework/source/jobs/jobdispatch.cxx index 07fcef45e691..022b2040ff2f 100644 --- a/framework/source/jobs/jobdispatch.cxx +++ b/framework/source/jobs/jobdispatch.cxx @@ -76,7 +76,7 @@ private: public: - JobDispatch( const css::uno::Reference< css::uno::XComponentContext >& xContext ); + explicit JobDispatch(const css::uno::Reference< css::uno::XComponentContext >& xContext); virtual ~JobDispatch(); void impl_dispatchEvent ( const OUString& sEvent , diff --git a/framework/source/jobs/jobexecutor.cxx b/framework/source/jobs/jobexecutor.cxx index 7091256b790f..05fd77de3eb0 100644 --- a/framework/source/jobs/jobexecutor.cxx +++ b/framework/source/jobs/jobexecutor.cxx @@ -83,7 +83,7 @@ private: public: - JobExecutor( const css::uno::Reference< css::uno::XComponentContext >& xContext ); + explicit JobExecutor(const css::uno::Reference< css::uno::XComponentContext >& xContext); virtual ~JobExecutor(); virtual OUString SAL_CALL getImplementationName() diff --git a/framework/source/layoutmanager/layoutmanager.cxx b/framework/source/layoutmanager/layoutmanager.cxx index 36a2d5431460..9ed838224db1 100644 --- a/framework/source/layoutmanager/layoutmanager.cxx +++ b/framework/source/layoutmanager/layoutmanager.cxx @@ -3132,7 +3132,7 @@ namespace detail private: ::cppu::OPropertyArrayHelper *m_pInfoHelper; public: - InfoHelperBuilder(const LayoutManager &rManager) + explicit InfoHelperBuilder(const LayoutManager &rManager) { uno::Sequence< beans::Property > aProperties; rManager.describeProperties(aProperties); diff --git a/framework/source/loadenv/loadenv.cxx b/framework/source/loadenv/loadenv.cxx index 0bed59228682..323926a57973 100644 --- a/framework/source/loadenv/loadenv.cxx +++ b/framework/source/loadenv/loadenv.cxx @@ -102,7 +102,7 @@ class LoadEnvListener : public ::cppu::WeakImplHelper< css::frame::XLoadEventLis public: - LoadEnvListener(LoadEnv* pLoadEnv) + explicit LoadEnvListener(LoadEnv* pLoadEnv) : m_bWaitingResult(true) , m_pLoadEnv(pLoadEnv) { diff --git a/framework/source/services/autorecovery.cxx b/framework/source/services/autorecovery.cxx index 26e174a0007c..e45ebdcaae36 100644 --- a/framework/source/services/autorecovery.cxx +++ b/framework/source/services/autorecovery.cxx @@ -447,7 +447,7 @@ private: public: - AutoRecovery(const css::uno::Reference< css::uno::XComponentContext >& xContext); + explicit AutoRecovery(const css::uno::Reference< css::uno::XComponentContext >& xContext); virtual ~AutoRecovery( ); virtual OUString SAL_CALL getImplementationName() diff --git a/framework/source/services/frame.cxx b/framework/source/services/frame.cxx index 69692ecc66c3..615bae9e5f2a 100644 --- a/framework/source/services/frame.cxx +++ b/framework/source/services/frame.cxx @@ -144,7 +144,7 @@ class Frame : // interfaces { public: - Frame( const css::uno::Reference< css::uno::XComponentContext >& xContext ); + explicit Frame(const css::uno::Reference< css::uno::XComponentContext >& xContext); virtual ~Frame(); /// Initialization function after having acquire()'d. diff --git a/framework/source/services/modulemanager.cxx b/framework/source/services/modulemanager.cxx index 942e6cf32fdc..e558ed068625 100644 --- a/framework/source/services/modulemanager.cxx +++ b/framework/source/services/modulemanager.cxx @@ -62,7 +62,7 @@ private: public: - ModuleManager(const css::uno::Reference< css::uno::XComponentContext >& xContext); + explicit ModuleManager(const css::uno::Reference< css::uno::XComponentContext >& xContext); virtual ~ModuleManager(); diff --git a/framework/source/services/pathsettings.cxx b/framework/source/services/pathsettings.cxx index 83543c69c960..063966f5b3f0 100644 --- a/framework/source/services/pathsettings.cxx +++ b/framework/source/services/pathsettings.cxx @@ -180,7 +180,7 @@ public: Attention: It's necessary for right function of this class, that the order of base classes is the right one. Because we transfer information from one base to another during this ctor runs! */ - PathSettings(const css::uno::Reference< css::uno::XComponentContext >& xContext); + explicit PathSettings(const css::uno::Reference< css::uno::XComponentContext >& xContext); /** free all used resources ... if it was not already done. */ virtual ~PathSettings(); diff --git a/framework/source/services/sessionlistener.cxx b/framework/source/services/sessionlistener.cxx index 8ba90ab5e2bb..851a6572f2ca 100644 --- a/framework/source/services/sessionlistener.cxx +++ b/framework/source/services/sessionlistener.cxx @@ -107,7 +107,7 @@ private: void QuitSessionQuietly(); public: - SessionListener( const css::uno::Reference< css::uno::XComponentContext >& xContext ); + explicit SessionListener(const css::uno::Reference< css::uno::XComponentContext >& xContext); virtual ~SessionListener(); diff --git a/framework/source/services/substitutepathvars.cxx b/framework/source/services/substitutepathvars.cxx index 3bf6c89b9219..7d4dc86dbed8 100644 --- a/framework/source/services/substitutepathvars.cxx +++ b/framework/source/services/substitutepathvars.cxx @@ -227,7 +227,7 @@ class SubstitutePathVariables : private cppu::BaseMutex, friend class SubstitutePathVariables_Impl; public: - SubstitutePathVariables( const css::uno::Reference< css::uno::XComponentContext >& xContext ); + explicit SubstitutePathVariables(const css::uno::Reference< css::uno::XComponentContext >& xContext); virtual ~SubstitutePathVariables(); virtual OUString SAL_CALL getImplementationName() diff --git a/framework/source/services/tabwindowservice.cxx b/framework/source/services/tabwindowservice.cxx index dde0162b3dcc..a31de095aeca 100644 --- a/framework/source/services/tabwindowservice.cxx +++ b/framework/source/services/tabwindowservice.cxx @@ -57,7 +57,7 @@ struct TTabPageInfo , m_lProperties ( ) {} - TTabPageInfo(::sal_Int32 nID) + explicit TTabPageInfo(::sal_Int32 nID) : m_nIndex ( nID ) , m_bCreated (false) , m_pPage ( nullptr ) diff --git a/framework/source/services/taskcreatorsrv.cxx b/framework/source/services/taskcreatorsrv.cxx index d46b9ba41bee..6f73c4df7942 100644 --- a/framework/source/services/taskcreatorsrv.cxx +++ b/framework/source/services/taskcreatorsrv.cxx @@ -63,7 +63,7 @@ private: public: - TaskCreatorService(const css::uno::Reference< css::uno::XComponentContext >& xContext); + explicit TaskCreatorService(const css::uno::Reference< css::uno::XComponentContext >& xContext); virtual ~TaskCreatorService( ); virtual OUString SAL_CALL getImplementationName() diff --git a/framework/source/uiconfiguration/globalsettings.cxx b/framework/source/uiconfiguration/globalsettings.cxx index e9076b042e97..80ec574f9d8d 100644 --- a/framework/source/uiconfiguration/globalsettings.cxx +++ b/framework/source/uiconfiguration/globalsettings.cxx @@ -56,7 +56,7 @@ class GlobalSettings_Access : public ::cppu::WeakImplHelper< css::lang::XEventListener> { public: - GlobalSettings_Access( const css::uno::Reference< css::uno::XComponentContext >& rxContext ); + explicit GlobalSettings_Access( const css::uno::Reference< css::uno::XComponentContext >& rxContext ); virtual ~GlobalSettings_Access(); // XComponent diff --git a/framework/source/uiconfiguration/imagemanagerimpl.hxx b/framework/source/uiconfiguration/imagemanagerimpl.hxx index f756f0b0ab9d..9b4af2536b68 100644 --- a/framework/source/uiconfiguration/imagemanagerimpl.hxx +++ b/framework/source/uiconfiguration/imagemanagerimpl.hxx @@ -76,7 +76,7 @@ namespace framework class GlobalImageList : public CmdImageList, public salhelper::SimpleReferenceObject { public: - GlobalImageList( const css::uno::Reference< css::uno::XComponentContext >& rxContext ); + explicit GlobalImageList(const css::uno::Reference< css::uno::XComponentContext >& rxContext); virtual ~GlobalImageList(); virtual Image getImageFromCommandURL( sal_Int16 nImageType, const OUString& rCommandURL ) override; |