cppcheck: noExplicitConstructor
Change-Id: Id438b987f72ae57bd4fa882e01fba17d3fa5b95b
This commit is contained in:
parent
15dfcb7f46
commit
d6790de07f
@ -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
|
||||
|
@ -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(
|
||||
|
@ -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
|
||||
|
@ -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();
|
||||
|
@ -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)
|
||||
{}
|
||||
|
||||
|
@ -46,7 +46,7 @@ namespace svgio
|
||||
|
||||
protected:
|
||||
public:
|
||||
XSvgParser(
|
||||
explicit XSvgParser(
|
||||
uno::Reference< uno::XComponentContext > const & context);
|
||||
virtual ~XSvgParser();
|
||||
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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
|
||||
|
@ -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 )
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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;
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user