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:
uno_Interface * mapToUno( const css::uno::Any & rObj, typelib_InterfaceTypeDescription * pTo ) throw(css::uno::RuntimeException);
// ctor/ dtor
IdlReflectionServiceImpl( const css::uno::Reference< css::uno::XComponentContext > & xContext );
explicit IdlReflectionServiceImpl( const css::uno::Reference< css::uno::XComponentContext > & xContext );
virtual ~IdlReflectionServiceImpl();
// XInterface
......
......@@ -1199,7 +1199,7 @@ class ImplementationRegistration
: public WeakImplHelper3< XImplementationRegistration2, XServiceInfo, XInitialization >
{
public:
ImplementationRegistration( const Reference < XComponentContext > & rSMgr );
explicit ImplementationRegistration( const Reference < XComponentContext > & rSMgr );
virtual ~ImplementationRegistration();
// XServiceInfo
......
......@@ -233,7 +233,7 @@ class IntrospectionAccessStatic_Impl: public salhelper::SimpleReferenceObject
sal_Int32 iNextIndex );
public:
IntrospectionAccessStatic_Impl( Reference< XIdlReflection > xCoreReflection_ );
explicit IntrospectionAccessStatic_Impl( Reference< XIdlReflection > xCoreReflection_ );
virtual ~IntrospectionAccessStatic_Impl()
{
delete[] mpOrgPropertyHandleArray;
......
......@@ -1051,7 +1051,7 @@ class InvocationService
: public WeakImplHelper2< XSingleServiceFactory, XServiceInfo >
{
public:
InvocationService( const Reference<XComponentContext> & xCtx );
explicit InvocationService( const Reference<XComponentContext> & xCtx );
virtual ~InvocationService();
// XServiceInfo
......
......@@ -100,7 +100,7 @@ public:
Mutex m_mutex;
t_ptr_map m_receiver2adapters;
FactoryImpl( Reference< XComponentContext > const & xContext );
explicit FactoryImpl( Reference< XComponentContext > const & xContext );
virtual ~FactoryImpl();
// XServiceInfo
......
......@@ -100,7 +100,7 @@ class JavaComponentLoader : public WeakImplHelper2<XImplementationLoader, XServi
public:
JavaComponentLoader(const css::uno::Reference<XComponentContext> & xCtx)
explicit JavaComponentLoader(const css::uno::Reference<XComponentContext> & xCtx)
throw(RuntimeException);
virtual ~JavaComponentLoader() throw();
......
......@@ -58,7 +58,7 @@ class DllComponentLoader
XServiceInfo >
{
public:
DllComponentLoader( const Reference<XComponentContext> & xCtx );
explicit DllComponentLoader( const Reference<XComponentContext> & xCtx );
virtual ~DllComponentLoader();
// XServiceInfo
......
......@@ -188,8 +188,11 @@ class acc_Policy
PermissionCollection m_permissions;
public:
inline acc_Policy(
PermissionCollection const & permissions );
explicit acc_Policy(
PermissionCollection const & permissions )
: m_permissions( permissions )
{}
virtual ~acc_Policy();
// XAccessControlContext impl
......@@ -198,11 +201,6 @@ public:
throw (RuntimeException, std::exception) SAL_OVERRIDE;
};
inline acc_Policy::acc_Policy(
PermissionCollection const & permissions )
: m_permissions( permissions )
{}
acc_Policy::~acc_Policy()
{}
......@@ -292,14 +290,12 @@ class cc_reset
{
void * m_cc;
public:
inline cc_reset( void * cc )
explicit cc_reset( void * cc )
: m_cc( cc ) {}
inline ~cc_reset()
{ ::uno_setCurrentContext( m_cc, s_envType.pData, 0 ); }
};
struct MutexHolder
{
Mutex m_mutex;
......@@ -343,7 +339,7 @@ protected:
virtual void SAL_CALL disposing() SAL_OVERRIDE;
public:
AccessController( Reference< XComponentContext > const & xComponentContext );
explicit AccessController( Reference< XComponentContext > const & xComponentContext );
virtual ~AccessController();
// 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