diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-05-26 13:56:20 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-05-26 14:11:12 +0100 |
commit | d2275c825d2300f3f176105058ac70b762bcc115 (patch) | |
tree | f8d373a15f7ec3d2e37fb33999d059b5592e3b76 /testtools/source | |
parent | 8790303b4c220d0c5dcf78a4c438a385ffe3f030 (diff) |
cppcheck: noExplicitConstructor
Change-Id: I955b04396d27e88ce228f180275955071da83ec6
Diffstat (limited to 'testtools/source')
-rw-r--r-- | testtools/source/bridgetest/bridgetest.cxx | 2 | ||||
-rw-r--r-- | testtools/source/bridgetest/cli/cli_cpp_bridgetest.cxx | 2 | ||||
-rw-r--r-- | testtools/source/performance/ubobject.cxx | 2 | ||||
-rw-r--r-- | testtools/source/performance/ubtest.cxx | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/testtools/source/bridgetest/bridgetest.cxx b/testtools/source/bridgetest/bridgetest.cxx index ea37b9a9c301..9a31f007e1d5 100644 --- a/testtools/source/bridgetest/bridgetest.cxx +++ b/testtools/source/bridgetest/bridgetest.cxx @@ -107,7 +107,7 @@ class TestBridgeImpl : public osl::DebugBase<TestBridgeImpl>, Reference< XComponentContext > m_xContext; public: - TestBridgeImpl( const Reference< XComponentContext > & xContext ) + explicit TestBridgeImpl( const Reference< XComponentContext > & xContext ) : m_xContext( xContext ) {} virtual ~TestBridgeImpl() diff --git a/testtools/source/bridgetest/cli/cli_cpp_bridgetest.cxx b/testtools/source/bridgetest/cli/cli_cpp_bridgetest.cxx index 793436f42bb7..a093eb0f6003 100644 --- a/testtools/source/bridgetest/cli/cli_cpp_bridgetest.cxx +++ b/testtools/source/bridgetest/cli/cli_cpp_bridgetest.cxx @@ -806,7 +806,7 @@ static bool raiseException(XBridgeTest* xLBT ) XComponentContext* m_xContext; public: - BridgeTest( XComponentContext* xContext ) + explicit BridgeTest( XComponentContext* xContext ) { m_xContext = xContext; } diff --git a/testtools/source/performance/ubobject.cxx b/testtools/source/performance/ubobject.cxx index 972f53e28646..bd1fc93cfa87 100644 --- a/testtools/source/performance/ubobject.cxx +++ b/testtools/source/performance/ubobject.cxx @@ -68,7 +68,7 @@ public: ServiceImpl() : _nRef( 0 ) {} - ServiceImpl( const Reference< XMultiServiceFactory > & xMgr ) + explicit ServiceImpl( const Reference< XMultiServiceFactory > & xMgr ) : _nRef( 0 ) {} diff --git a/testtools/source/performance/ubtest.cxx b/testtools/source/performance/ubtest.cxx index f1eabf2f7a8c..807b5bde78cc 100644 --- a/testtools/source/performance/ubtest.cxx +++ b/testtools/source/performance/ubtest.cxx @@ -409,7 +409,7 @@ class TestImpl : public WeakImplHelper2< XServiceInfo, XMain > Reference< XInterface > resolveObject( const OUString & rUnoUrl ) throw (Exception); public: - TestImpl( const Reference< XMultiServiceFactory > & xSMgr ); + explicit TestImpl( const Reference< XMultiServiceFactory > & xSMgr ); virtual ~TestImpl(); // XServiceInfo |