diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-07-15 17:32:31 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-07-15 20:03:35 +0100 |
commit | d6790de07ff225f9e5b58152d01719e5fbe9e6cd (patch) | |
tree | cd00ab904e893bf14670fd8c4d9efa58b02cb64b /stoc | |
parent | 15dfcb7f461893f83abcf28bfe01a4164209a160 (diff) |
cppcheck: noExplicitConstructor
Change-Id: Id438b987f72ae57bd4fa882e01fba17d3fa5b95b
Diffstat (limited to 'stoc')
-rw-r--r-- | stoc/source/security/file_policy.cxx | 2 | ||||
-rw-r--r-- | stoc/source/security/permissions.h | 4 | ||||
-rw-r--r-- | stoc/source/servicemanager/servicemanager.cxx | 14 | ||||
-rw-r--r-- | stoc/test/testintrosp.cxx | 4 |
4 files changed, 12 insertions, 12 deletions
diff --git a/stoc/source/security/file_policy.cxx b/stoc/source/security/file_policy.cxx index 3dc06e8515f0..920e464a1e63 100644 --- a/stoc/source/security/file_policy.cxx +++ b/stoc/source/security/file_policy.cxx @@ -71,7 +71,7 @@ protected: virtual void SAL_CALL disposing() SAL_OVERRIDE; public: - FilePolicy( Reference< XComponentContext > const & xComponentContext ); + explicit FilePolicy( Reference< XComponentContext > const & xComponentContext ); virtual ~FilePolicy(); // XPolicy impl diff --git a/stoc/source/security/permissions.h b/stoc/source/security/permissions.h index ee40365c15c2..b5fbd37dd203 100644 --- a/stoc/source/security/permissions.h +++ b/stoc/source/security/permissions.h @@ -51,7 +51,7 @@ public: class AllPermission : public Permission { public: - inline AllPermission( + explicit AllPermission( ::rtl::Reference< Permission > const & next = ::rtl::Reference< Permission >() ) : Permission( ALL, next ) {} @@ -70,7 +70,7 @@ public: inline PermissionCollection( PermissionCollection const & collection ) : m_head( collection.m_head ) {} - inline PermissionCollection( ::rtl::Reference< Permission > const & single ) + explicit PermissionCollection( ::rtl::Reference< Permission > const & single ) : m_head( single ) {} PermissionCollection( diff --git a/stoc/source/servicemanager/servicemanager.cxx b/stoc/source/servicemanager/servicemanager.cxx index 8a85e1514184..b206d228afc2 100644 --- a/stoc/source/servicemanager/servicemanager.cxx +++ b/stoc/source/servicemanager/servicemanager.cxx @@ -154,7 +154,7 @@ typedef std::unordered_set class ServiceEnumeration_Impl : public WeakImplHelper1< XEnumeration > { public: - ServiceEnumeration_Impl( const Sequence< Reference<XInterface > > & rFactories ) + explicit ServiceEnumeration_Impl( const Sequence< Reference<XInterface > > & rFactories ) : aFactories( rFactories ) , nIt( 0 ) {} @@ -195,7 +195,7 @@ class PropertySetInfo_Impl : public WeakImplHelper1< beans::XPropertySetInfo > Sequence< beans::Property > m_properties; public: - inline PropertySetInfo_Impl( Sequence< beans::Property > const & properties ) + explicit PropertySetInfo_Impl( Sequence< beans::Property > const & properties ) : m_properties( properties ) {} @@ -246,7 +246,7 @@ sal_Bool PropertySetInfo_Impl::hasPropertyByName( OUString const & name ) class ImplementationEnumeration_Impl : public WeakImplHelper1< XEnumeration > { public: - ImplementationEnumeration_Impl( const HashSet_Ref & rImplementationMap ) + explicit ImplementationEnumeration_Impl( const HashSet_Ref & rImplementationMap ) : aImplementationMap( rImplementationMap ) , aIt( aImplementationMap.begin() ) {} @@ -320,7 +320,7 @@ private: WeakReference<XSet > xSMgr; public: - OServiceManager_Listener( const Reference<XSet > & rSMgr ) + explicit OServiceManager_Listener( const Reference<XSet > & rSMgr ) : xSMgr( rSMgr ) {} @@ -369,7 +369,7 @@ class OServiceManager , public t_OServiceManager_impl { public: - OServiceManager( Reference< XComponentContext > const & xContext ); + explicit OServiceManager( Reference< XComponentContext > const & xContext ); virtual ~OServiceManager(); // XInitialization @@ -512,7 +512,7 @@ protected: virtual void SAL_CALL disposing() SAL_OVERRIDE; public: - OServiceManagerWrapper( + explicit OServiceManagerWrapper( Reference< XComponentContext > const & xContext ); virtual ~OServiceManagerWrapper(); @@ -1308,7 +1308,7 @@ void OServiceManager::remove( const Any & Element ) class ORegistryServiceManager : public OServiceManager { public: - ORegistryServiceManager( Reference< XComponentContext > const & xContext ); + explicit ORegistryServiceManager( Reference< XComponentContext > const & xContext ); virtual ~ORegistryServiceManager(); // XInitialization diff --git a/stoc/test/testintrosp.cxx b/stoc/test/testintrosp.cxx index 43ea55c1cc76..2843169ba785 100644 --- a/stoc/test/testintrosp.cxx +++ b/stoc/test/testintrosp.cxx @@ -183,7 +183,7 @@ class ImplPropertySetInfo : public ImplPropertySetInfoHelper Reference< XMultiServiceFactory > mxMgr; public: - ImplPropertySetInfo( const Reference< XMultiServiceFactory > & xMgr ) + explicit ImplPropertySetInfo( const Reference< XMultiServiceFactory > & xMgr ) : mxMgr( xMgr ) {} // Methods of XPropertySetInfo @@ -303,7 +303,7 @@ class ImplIntroTest : public ImplIntroTestHelper void Init(); public: - ImplIntroTest( const Reference< XMultiServiceFactory > & xMgr ) + explicit ImplIntroTest( const Reference< XMultiServiceFactory > & xMgr ) : mxMgr( xMgr ) { Init(); |