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 | |
parent | 15dfcb7f461893f83abcf28bfe01a4164209a160 (diff) |
cppcheck: noExplicitConstructor
Change-Id: Id438b987f72ae57bd4fa882e01fba17d3fa5b95b
-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 | ||||
-rw-r--r-- | store/source/store.cxx | 2 | ||||
-rw-r--r-- | svgio/source/svguno/xsvgparser.cxx | 2 | ||||
-rw-r--r-- | svl/source/fsstor/oinputstreamcontainer.hxx | 2 | ||||
-rw-r--r-- | svl/source/fsstor/ostreamcontainer.hxx | 2 | ||||
-rw-r--r-- | svl/source/items/itemprop.cxx | 2 | ||||
-rw-r--r-- | svtools/source/contnr/treelist.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/unocore/unoobj2.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/dbui/dbmgr.cxx | 2 | ||||
-rw-r--r-- | vcl/source/control/combobox.cxx | 2 |
13 files changed, 21 insertions, 21 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(); diff --git a/store/source/store.cxx b/store/source/store.cxx index 22fc68f80511..04b9cc1c6666 100644 --- a/store/source/store.cxx +++ b/store/source/store.cxx @@ -41,7 +41,7 @@ template<class store_handle_type> class OStoreHandle : public rtl::Reference<store_handle_type> { public: - OStoreHandle (store_handle_type * pHandle) + explicit OStoreHandle (store_handle_type * pHandle) : rtl::Reference<store_handle_type> (pHandle) {} diff --git a/svgio/source/svguno/xsvgparser.cxx b/svgio/source/svguno/xsvgparser.cxx index 29ece61e2777..ce2e0a81d49e 100644 --- a/svgio/source/svguno/xsvgparser.cxx +++ b/svgio/source/svguno/xsvgparser.cxx @@ -46,7 +46,7 @@ namespace svgio protected: public: - XSvgParser( + explicit XSvgParser( uno::Reference< uno::XComponentContext > const & context); virtual ~XSvgParser(); diff --git a/svl/source/fsstor/oinputstreamcontainer.hxx b/svl/source/fsstor/oinputstreamcontainer.hxx index a5ad6f9b05a6..1510387e4a57 100644 --- a/svl/source/fsstor/oinputstreamcontainer.hxx +++ b/svl/source/fsstor/oinputstreamcontainer.hxx @@ -46,7 +46,7 @@ class OFSInputStreamContainer : public cppu::WeakImplHelper2 < ::com::sun::star: ::cppu::OInterfaceContainerHelper* m_pListenersContainer; // list of listeners public: - OFSInputStreamContainer( const ::com::sun::star::uno::Reference < ::com::sun::star::io::XInputStream >& xStream ); + explicit OFSInputStreamContainer( const ::com::sun::star::uno::Reference < ::com::sun::star::io::XInputStream >& xStream ); virtual ~OFSInputStreamContainer(); diff --git a/svl/source/fsstor/ostreamcontainer.hxx b/svl/source/fsstor/ostreamcontainer.hxx index f998664bcf33..f6d7c2eef93f 100644 --- a/svl/source/fsstor/ostreamcontainer.hxx +++ b/svl/source/fsstor/ostreamcontainer.hxx @@ -60,7 +60,7 @@ class OFSStreamContainer : public cppu::OWeakObject, ::cppu::OTypeCollection* m_pTypeCollection; public: - OFSStreamContainer( const ::com::sun::star::uno::Reference < ::com::sun::star::io::XStream >& xStream ); + explicit OFSStreamContainer( const ::com::sun::star::uno::Reference < ::com::sun::star::io::XStream >& xStream ); virtual ~OFSStreamContainer(); // XInterface diff --git a/svl/source/items/itemprop.cxx b/svl/source/items/itemprop.cxx index 9e2c1ed0593d..3916db7e8038 100644 --- a/svl/source/items/itemprop.cxx +++ b/svl/source/items/itemprop.cxx @@ -51,7 +51,7 @@ public: mutable uno::Sequence< beans::Property > m_aPropSeq; SfxItemPropertyMap_Impl(){} - SfxItemPropertyMap_Impl( const SfxItemPropertyMap_Impl* pSource ); + explicit SfxItemPropertyMap_Impl( const SfxItemPropertyMap_Impl* pSource ); }; SfxItemPropertyMap_Impl::SfxItemPropertyMap_Impl( const SfxItemPropertyMap_Impl* pSource ) diff --git a/svtools/source/contnr/treelist.cxx b/svtools/source/contnr/treelist.cxx index 059c4630743f..07534957b610 100644 --- a/svtools/source/contnr/treelist.cxx +++ b/svtools/source/contnr/treelist.cxx @@ -37,7 +37,7 @@ struct SvListView::Impl sal_uLong m_nSelectionCount; bool m_bVisPositionsValid; - Impl(SvListView & rThis) + explicit Impl(SvListView & rThis) : m_rThis(rThis) , m_nVisibleCount(0) , m_nSelectionCount(0) diff --git a/sw/source/core/unocore/unoobj2.cxx b/sw/source/core/unocore/unoobj2.cxx index 1610bd54200e..7b1b37e63a20 100644 --- a/sw/source/core/unocore/unoobj2.cxx +++ b/sw/source/core/unocore/unoobj2.cxx @@ -1495,7 +1495,7 @@ struct SwXTextRangesImpl SAL_FINAL : public SwXTextRanges virtual sal_Int32 SAL_CALL getCount() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual ::com::sun::star::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - SwXTextRangesImpl(SwPaM *const pPaM) + explicit SwXTextRangesImpl(SwPaM *const pPaM) { if (pPaM) { diff --git a/sw/source/uibase/dbui/dbmgr.cxx b/sw/source/uibase/dbui/dbmgr.cxx index f31aaae4d19d..d7bad03efb2e 100644 --- a/sw/source/uibase/dbui/dbmgr.cxx +++ b/sw/source/uibase/dbui/dbmgr.cxx @@ -211,7 +211,7 @@ class SwDataSourceRemovedListener : public cppu::WeakImplHelper<sdb::XDatabaseRe SwDBManager* m_pDBManager; public: - SwDataSourceRemovedListener(SwDBManager& rDBManager); + explicit SwDataSourceRemovedListener(SwDBManager& rDBManager); virtual ~SwDataSourceRemovedListener(); virtual void SAL_CALL registeredDatabaseLocation(const sdb::DatabaseRegistrationEvent& rEvent) throw (uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL revokedDatabaseLocation(const sdb::DatabaseRegistrationEvent& rEvent) throw (uno::RuntimeException, std::exception) SAL_OVERRIDE; diff --git a/vcl/source/control/combobox.cxx b/vcl/source/control/combobox.cxx index 5d97fd3780db..70152d881b0e 100644 --- a/vcl/source/control/combobox.cxx +++ b/vcl/source/control/combobox.cxx @@ -63,7 +63,7 @@ struct ComboBox::Impl Link<> m_DoubleClickHdl; boost::signals2::scoped_connection m_AutocompleteConnection; - Impl(ComboBox & rThis) + explicit Impl(ComboBox & rThis) : m_rThis(rThis) , m_nDDHeight(0) , m_cMultiSep(0) |