diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-06-08 20:53:33 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-06-09 10:34:00 +0100 |
commit | ad62165065a0f96933d8b491770775bb57ac51bd (patch) | |
tree | be8f806481f96756bc33d9414640b31dd1e84f5f /cppuhelper/test | |
parent | cc0e9a37de8bceeb224b03a5bb1827b087e3e7b5 (diff) |
cppcheck: noExplicitConstructor
Change-Id: Ic33ee6936f40bec4f3a82aea39a180ae6e9a0928
Diffstat (limited to 'cppuhelper/test')
-rw-r--r-- | cppuhelper/test/cfg_test.cxx | 7 | ||||
-rw-r--r-- | cppuhelper/test/testimplhelper.cxx | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/cppuhelper/test/cfg_test.cxx b/cppuhelper/test/cfg_test.cxx index 27e223936e3c..976dd3f99814 100644 --- a/cppuhelper/test/cfg_test.cxx +++ b/cppuhelper/test/cfg_test.cxx @@ -79,7 +79,7 @@ class ServiceImpl0 Reference< XComponentContext > m_xContext; public: - ServiceImpl0( Reference< XComponentContext > const & xContext ); + explicit ServiceImpl0( Reference< XComponentContext > const & xContext ); // XInitialization virtual void SAL_CALL initialize( const Sequence< Any >& rArgs ) throw (Exception, RuntimeException); @@ -150,9 +150,10 @@ sal_Bool ServiceImpl0::supportsService( const OUString & rServiceName ) class ServiceImpl1 : public ServiceImpl0 { public: - inline ServiceImpl1( Reference< XComponentContext > const & xContext ) + explicit ServiceImpl1( Reference< XComponentContext > const & xContext ) : ServiceImpl0( xContext ) - {} + { + } // XServiceInfo virtual Sequence< OUString > SAL_CALL getSupportedServiceNames() throw (RuntimeException); diff --git a/cppuhelper/test/testimplhelper.cxx b/cppuhelper/test/testimplhelper.cxx index 0f359e376e72..b099d55bcbd1 100644 --- a/cppuhelper/test/testimplhelper.cxx +++ b/cppuhelper/test/testimplhelper.cxx @@ -175,7 +175,7 @@ struct TestWeakImpl : public WeakImplHelper4< CA, DBA, FE, G > { return OUString("g"); } protected: - TestWeakImpl(int) {} + explicit TestWeakImpl(int) {} TestWeakImpl(int, int) {} |