Kaydet (Commit) 1a3eedcc authored tarafından Caolán McNamara's avatar Caolán McNamara

cppcheck: noExplicitConstructor

Change-Id: Ia86c6a2ce6c1f2501d0b18181966b61d9ef78746
üst dc71a727
...@@ -111,7 +111,7 @@ public: ...@@ -111,7 +111,7 @@ public:
uno_Interface * mapToUno( const css::uno::Any & rObj, typelib_InterfaceTypeDescription * pTo ) throw(css::uno::RuntimeException); uno_Interface * mapToUno( const css::uno::Any & rObj, typelib_InterfaceTypeDescription * pTo ) throw(css::uno::RuntimeException);
// ctor/ dtor // ctor/ dtor
IdlReflectionServiceImpl( const css::uno::Reference< css::uno::XComponentContext > & xContext ); explicit IdlReflectionServiceImpl( const css::uno::Reference< css::uno::XComponentContext > & xContext );
virtual ~IdlReflectionServiceImpl(); virtual ~IdlReflectionServiceImpl();
// XInterface // XInterface
......
...@@ -1199,7 +1199,7 @@ class ImplementationRegistration ...@@ -1199,7 +1199,7 @@ class ImplementationRegistration
: public WeakImplHelper3< XImplementationRegistration2, XServiceInfo, XInitialization > : public WeakImplHelper3< XImplementationRegistration2, XServiceInfo, XInitialization >
{ {
public: public:
ImplementationRegistration( const Reference < XComponentContext > & rSMgr ); explicit ImplementationRegistration( const Reference < XComponentContext > & rSMgr );
virtual ~ImplementationRegistration(); virtual ~ImplementationRegistration();
// XServiceInfo // XServiceInfo
......
...@@ -233,7 +233,7 @@ class IntrospectionAccessStatic_Impl: public salhelper::SimpleReferenceObject ...@@ -233,7 +233,7 @@ class IntrospectionAccessStatic_Impl: public salhelper::SimpleReferenceObject
sal_Int32 iNextIndex ); sal_Int32 iNextIndex );
public: public:
IntrospectionAccessStatic_Impl( Reference< XIdlReflection > xCoreReflection_ ); explicit IntrospectionAccessStatic_Impl( Reference< XIdlReflection > xCoreReflection_ );
virtual ~IntrospectionAccessStatic_Impl() virtual ~IntrospectionAccessStatic_Impl()
{ {
delete[] mpOrgPropertyHandleArray; delete[] mpOrgPropertyHandleArray;
......
...@@ -1051,7 +1051,7 @@ class InvocationService ...@@ -1051,7 +1051,7 @@ class InvocationService
: public WeakImplHelper2< XSingleServiceFactory, XServiceInfo > : public WeakImplHelper2< XSingleServiceFactory, XServiceInfo >
{ {
public: public:
InvocationService( const Reference<XComponentContext> & xCtx ); explicit InvocationService( const Reference<XComponentContext> & xCtx );
virtual ~InvocationService(); virtual ~InvocationService();
// XServiceInfo // XServiceInfo
......
...@@ -100,7 +100,7 @@ public: ...@@ -100,7 +100,7 @@ public:
Mutex m_mutex; Mutex m_mutex;
t_ptr_map m_receiver2adapters; t_ptr_map m_receiver2adapters;
FactoryImpl( Reference< XComponentContext > const & xContext ); explicit FactoryImpl( Reference< XComponentContext > const & xContext );
virtual ~FactoryImpl(); virtual ~FactoryImpl();
// XServiceInfo // XServiceInfo
......
...@@ -100,7 +100,7 @@ class JavaComponentLoader : public WeakImplHelper2<XImplementationLoader, XServi ...@@ -100,7 +100,7 @@ class JavaComponentLoader : public WeakImplHelper2<XImplementationLoader, XServi
public: public:
JavaComponentLoader(const css::uno::Reference<XComponentContext> & xCtx) explicit JavaComponentLoader(const css::uno::Reference<XComponentContext> & xCtx)
throw(RuntimeException); throw(RuntimeException);
virtual ~JavaComponentLoader() throw(); virtual ~JavaComponentLoader() throw();
......
...@@ -58,7 +58,7 @@ class DllComponentLoader ...@@ -58,7 +58,7 @@ class DllComponentLoader
XServiceInfo > XServiceInfo >
{ {
public: public:
DllComponentLoader( const Reference<XComponentContext> & xCtx ); explicit DllComponentLoader( const Reference<XComponentContext> & xCtx );
virtual ~DllComponentLoader(); virtual ~DllComponentLoader();
// XServiceInfo // XServiceInfo
......
...@@ -188,8 +188,11 @@ class acc_Policy ...@@ -188,8 +188,11 @@ class acc_Policy
PermissionCollection m_permissions; PermissionCollection m_permissions;
public: public:
inline acc_Policy( explicit acc_Policy(
PermissionCollection const & permissions ); PermissionCollection const & permissions )
: m_permissions( permissions )
{}
virtual ~acc_Policy(); virtual ~acc_Policy();
// XAccessControlContext impl // XAccessControlContext impl
...@@ -198,11 +201,6 @@ public: ...@@ -198,11 +201,6 @@ public:
throw (RuntimeException, std::exception) SAL_OVERRIDE; throw (RuntimeException, std::exception) SAL_OVERRIDE;
}; };
inline acc_Policy::acc_Policy(
PermissionCollection const & permissions )
: m_permissions( permissions )
{}
acc_Policy::~acc_Policy() acc_Policy::~acc_Policy()
{} {}
...@@ -292,14 +290,12 @@ class cc_reset ...@@ -292,14 +290,12 @@ class cc_reset
{ {
void * m_cc; void * m_cc;
public: public:
inline cc_reset( void * cc ) explicit cc_reset( void * cc )
: m_cc( cc ) {} : m_cc( cc ) {}
inline ~cc_reset() inline ~cc_reset()
{ ::uno_setCurrentContext( m_cc, s_envType.pData, 0 ); } { ::uno_setCurrentContext( m_cc, s_envType.pData, 0 ); }
}; };
struct MutexHolder struct MutexHolder
{ {
Mutex m_mutex; Mutex m_mutex;
...@@ -343,7 +339,7 @@ protected: ...@@ -343,7 +339,7 @@ protected:
virtual void SAL_CALL disposing() SAL_OVERRIDE; virtual void SAL_CALL disposing() SAL_OVERRIDE;
public: public:
AccessController( Reference< XComponentContext > const & xComponentContext ); explicit AccessController( Reference< XComponentContext > const & xComponentContext );
virtual ~AccessController(); virtual ~AccessController();
// XInitialization impl // XInitialization impl
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment