cppcheck: noExplicitConstructor

Change-Id: Id438b987f72ae57bd4fa882e01fba17d3fa5b95b
This commit is contained in:
Caolán McNamara
2015-07-15 17:32:31 +01:00
parent 15dfcb7f46
commit d6790de07f
13 changed files with 21 additions and 21 deletions

View File

@@ -71,7 +71,7 @@ protected:
virtual void SAL_CALL disposing() SAL_OVERRIDE; virtual void SAL_CALL disposing() SAL_OVERRIDE;
public: public:
FilePolicy( Reference< XComponentContext > const & xComponentContext ); explicit FilePolicy( Reference< XComponentContext > const & xComponentContext );
virtual ~FilePolicy(); virtual ~FilePolicy();
// XPolicy impl // XPolicy impl

View File

@@ -51,7 +51,7 @@ public:
class AllPermission : public Permission class AllPermission : public Permission
{ {
public: public:
inline AllPermission( explicit AllPermission(
::rtl::Reference< Permission > const & next = ::rtl::Reference< Permission >() ) ::rtl::Reference< Permission > const & next = ::rtl::Reference< Permission >() )
: Permission( ALL, next ) : Permission( ALL, next )
{} {}
@@ -70,7 +70,7 @@ public:
inline PermissionCollection( PermissionCollection const & collection ) inline PermissionCollection( PermissionCollection const & collection )
: m_head( collection.m_head ) : m_head( collection.m_head )
{} {}
inline PermissionCollection( ::rtl::Reference< Permission > const & single ) explicit PermissionCollection( ::rtl::Reference< Permission > const & single )
: m_head( single ) : m_head( single )
{} {}
PermissionCollection( PermissionCollection(

View File

@@ -154,7 +154,7 @@ typedef std::unordered_set
class ServiceEnumeration_Impl : public WeakImplHelper1< XEnumeration > class ServiceEnumeration_Impl : public WeakImplHelper1< XEnumeration >
{ {
public: public:
ServiceEnumeration_Impl( const Sequence< Reference<XInterface > > & rFactories ) explicit ServiceEnumeration_Impl( const Sequence< Reference<XInterface > > & rFactories )
: aFactories( rFactories ) : aFactories( rFactories )
, nIt( 0 ) , nIt( 0 )
{} {}
@@ -195,7 +195,7 @@ class PropertySetInfo_Impl : public WeakImplHelper1< beans::XPropertySetInfo >
Sequence< beans::Property > m_properties; Sequence< beans::Property > m_properties;
public: public:
inline PropertySetInfo_Impl( Sequence< beans::Property > const & properties ) explicit PropertySetInfo_Impl( Sequence< beans::Property > const & properties )
: m_properties( properties ) : m_properties( properties )
{} {}
@@ -246,7 +246,7 @@ sal_Bool PropertySetInfo_Impl::hasPropertyByName( OUString const & name )
class ImplementationEnumeration_Impl : public WeakImplHelper1< XEnumeration > class ImplementationEnumeration_Impl : public WeakImplHelper1< XEnumeration >
{ {
public: public:
ImplementationEnumeration_Impl( const HashSet_Ref & rImplementationMap ) explicit ImplementationEnumeration_Impl( const HashSet_Ref & rImplementationMap )
: aImplementationMap( rImplementationMap ) : aImplementationMap( rImplementationMap )
, aIt( aImplementationMap.begin() ) , aIt( aImplementationMap.begin() )
{} {}
@@ -320,7 +320,7 @@ private:
WeakReference<XSet > xSMgr; WeakReference<XSet > xSMgr;
public: public:
OServiceManager_Listener( const Reference<XSet > & rSMgr ) explicit OServiceManager_Listener( const Reference<XSet > & rSMgr )
: xSMgr( rSMgr ) : xSMgr( rSMgr )
{} {}
@@ -369,7 +369,7 @@ class OServiceManager
, public t_OServiceManager_impl , public t_OServiceManager_impl
{ {
public: public:
OServiceManager( Reference< XComponentContext > const & xContext ); explicit OServiceManager( Reference< XComponentContext > const & xContext );
virtual ~OServiceManager(); virtual ~OServiceManager();
// XInitialization // XInitialization
@@ -512,7 +512,7 @@ protected:
virtual void SAL_CALL disposing() SAL_OVERRIDE; virtual void SAL_CALL disposing() SAL_OVERRIDE;
public: public:
OServiceManagerWrapper( explicit OServiceManagerWrapper(
Reference< XComponentContext > const & xContext ); Reference< XComponentContext > const & xContext );
virtual ~OServiceManagerWrapper(); virtual ~OServiceManagerWrapper();
@@ -1308,7 +1308,7 @@ void OServiceManager::remove( const Any & Element )
class ORegistryServiceManager : public OServiceManager class ORegistryServiceManager : public OServiceManager
{ {
public: public:
ORegistryServiceManager( Reference< XComponentContext > const & xContext ); explicit ORegistryServiceManager( Reference< XComponentContext > const & xContext );
virtual ~ORegistryServiceManager(); virtual ~ORegistryServiceManager();
// XInitialization // XInitialization

View File

@@ -183,7 +183,7 @@ class ImplPropertySetInfo : public ImplPropertySetInfoHelper
Reference< XMultiServiceFactory > mxMgr; Reference< XMultiServiceFactory > mxMgr;
public: public:
ImplPropertySetInfo( const Reference< XMultiServiceFactory > & xMgr ) explicit ImplPropertySetInfo( const Reference< XMultiServiceFactory > & xMgr )
: mxMgr( xMgr ) {} : mxMgr( xMgr ) {}
// Methods of XPropertySetInfo // Methods of XPropertySetInfo
@@ -303,7 +303,7 @@ class ImplIntroTest : public ImplIntroTestHelper
void Init(); void Init();
public: public:
ImplIntroTest( const Reference< XMultiServiceFactory > & xMgr ) explicit ImplIntroTest( const Reference< XMultiServiceFactory > & xMgr )
: mxMgr( xMgr ) : mxMgr( xMgr )
{ {
Init(); Init();

View File

@@ -41,7 +41,7 @@ template<class store_handle_type>
class OStoreHandle : public rtl::Reference<store_handle_type> class OStoreHandle : public rtl::Reference<store_handle_type>
{ {
public: public:
OStoreHandle (store_handle_type * pHandle) explicit OStoreHandle (store_handle_type * pHandle)
: rtl::Reference<store_handle_type> (pHandle) : rtl::Reference<store_handle_type> (pHandle)
{} {}

View File

@@ -46,7 +46,7 @@ namespace svgio
protected: protected:
public: public:
XSvgParser( explicit XSvgParser(
uno::Reference< uno::XComponentContext > const & context); uno::Reference< uno::XComponentContext > const & context);
virtual ~XSvgParser(); virtual ~XSvgParser();

View File

@@ -46,7 +46,7 @@ class OFSInputStreamContainer : public cppu::WeakImplHelper2 < ::com::sun::star:
::cppu::OInterfaceContainerHelper* m_pListenersContainer; // list of listeners ::cppu::OInterfaceContainerHelper* m_pListenersContainer; // list of listeners
public: 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(); virtual ~OFSInputStreamContainer();

View File

@@ -60,7 +60,7 @@ class OFSStreamContainer : public cppu::OWeakObject,
::cppu::OTypeCollection* m_pTypeCollection; ::cppu::OTypeCollection* m_pTypeCollection;
public: 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(); virtual ~OFSStreamContainer();
// XInterface // XInterface

View File

@@ -51,7 +51,7 @@ public:
mutable uno::Sequence< beans::Property > m_aPropSeq; mutable uno::Sequence< beans::Property > m_aPropSeq;
SfxItemPropertyMap_Impl(){} SfxItemPropertyMap_Impl(){}
SfxItemPropertyMap_Impl( const SfxItemPropertyMap_Impl* pSource ); explicit SfxItemPropertyMap_Impl( const SfxItemPropertyMap_Impl* pSource );
}; };
SfxItemPropertyMap_Impl::SfxItemPropertyMap_Impl( const SfxItemPropertyMap_Impl* pSource ) SfxItemPropertyMap_Impl::SfxItemPropertyMap_Impl( const SfxItemPropertyMap_Impl* pSource )

View File

@@ -37,7 +37,7 @@ struct SvListView::Impl
sal_uLong m_nSelectionCount; sal_uLong m_nSelectionCount;
bool m_bVisPositionsValid; bool m_bVisPositionsValid;
Impl(SvListView & rThis) explicit Impl(SvListView & rThis)
: m_rThis(rThis) : m_rThis(rThis)
, m_nVisibleCount(0) , m_nVisibleCount(0)
, m_nSelectionCount(0) , m_nSelectionCount(0)

View File

@@ -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 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; 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) if (pPaM)
{ {

View File

@@ -211,7 +211,7 @@ class SwDataSourceRemovedListener : public cppu::WeakImplHelper<sdb::XDatabaseRe
SwDBManager* m_pDBManager; SwDBManager* m_pDBManager;
public: public:
SwDataSourceRemovedListener(SwDBManager& rDBManager); explicit SwDataSourceRemovedListener(SwDBManager& rDBManager);
virtual ~SwDataSourceRemovedListener(); virtual ~SwDataSourceRemovedListener();
virtual void SAL_CALL registeredDatabaseLocation(const sdb::DatabaseRegistrationEvent& rEvent) throw (uno::RuntimeException, std::exception) SAL_OVERRIDE; 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; virtual void SAL_CALL revokedDatabaseLocation(const sdb::DatabaseRegistrationEvent& rEvent) throw (uno::RuntimeException, std::exception) SAL_OVERRIDE;

View File

@@ -63,7 +63,7 @@ struct ComboBox::Impl
Link<> m_DoubleClickHdl; Link<> m_DoubleClickHdl;
boost::signals2::scoped_connection m_AutocompleteConnection; boost::signals2::scoped_connection m_AutocompleteConnection;
Impl(ComboBox & rThis) explicit Impl(ComboBox & rThis)
: m_rThis(rThis) : m_rThis(rThis)
, m_nDDHeight(0) , m_nDDHeight(0)
, m_cMultiSep(0) , m_cMultiSep(0)