summaryrefslogtreecommitdiff
path: root/package/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-06-11 11:25:08 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-06-11 14:56:14 +0100
commit8a3120ced522357f53c97b051d0af6437c7a0316 (patch)
tree8b3d19f6a686d1767adb469a123b371ee8950d4a /package/source
parentddaca012d2715e5270dfeef43452e07aa7a9508c (diff)
cppcheck: noExplicitConstructor
Change-Id: Id6291335945a8f10cef3afd1a2b3bae65fdf4562
Diffstat (limited to 'package/source')
-rw-r--r--package/source/xstor/disposelistener.hxx2
-rw-r--r--package/source/xstor/ohierarchyholder.hxx4
-rw-r--r--package/source/xstor/xfactory.hxx2
-rw-r--r--package/source/xstor/xstorage.hxx2
4 files changed, 5 insertions, 5 deletions
diff --git a/package/source/xstor/disposelistener.hxx b/package/source/xstor/disposelistener.hxx
index 63e53460d5a4..31ce20b5f779 100644
--- a/package/source/xstor/disposelistener.hxx
+++ b/package/source/xstor/disposelistener.hxx
@@ -31,7 +31,7 @@ class OChildDispListener_Impl : public ::cppu::WeakImplHelper1 < ::com::sun::sta
OStorage* m_pStorage;
public:
- OChildDispListener_Impl( OStorage& aStorage );
+ explicit OChildDispListener_Impl( OStorage& aStorage );
virtual ~OChildDispListener_Impl();
void OwnerIsDisposed();
diff --git a/package/source/xstor/ohierarchyholder.hxx b/package/source/xstor/ohierarchyholder.hxx
index d680b434dd6a..680b30c4eb37 100644
--- a/package/source/xstor/ohierarchyholder.hxx
+++ b/package/source/xstor/ohierarchyholder.hxx
@@ -70,7 +70,7 @@ public:
, m_xOwnStorage( xStorage )
{}
- OHierarchyElement_Impl( const ::com::sun::star::uno::WeakReference< ::com::sun::star::embed::XStorage >& xWeakStorage )
+ explicit OHierarchyElement_Impl( const ::com::sun::star::uno::WeakReference< ::com::sun::star::embed::XStorage >& xWeakStorage )
: m_rParent( NULL )
, m_xWeakOwnStorage( xWeakStorage )
{}
@@ -112,7 +112,7 @@ class OHierarchyHolder_Impl : public ::cppu::OWeakObject
::com::sun::star::uno::WeakReference< ::com::sun::star::embed::XStorage > m_xWeakOwnStorage;
::rtl::Reference< OHierarchyElement_Impl > m_xChild;
public:
- OHierarchyHolder_Impl( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xOwnStorage )
+ explicit OHierarchyHolder_Impl( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xOwnStorage )
: m_xWeakOwnStorage( xOwnStorage )
, m_xChild( new OHierarchyElement_Impl( ::com::sun::star::uno::WeakReference< ::com::sun::star::embed::XStorage >( xOwnStorage ) ) )
{}
diff --git a/package/source/xstor/xfactory.hxx b/package/source/xstor/xfactory.hxx
index b6dbe4e7d00d..8ec725b3928f 100644
--- a/package/source/xstor/xfactory.hxx
+++ b/package/source/xstor/xfactory.hxx
@@ -31,7 +31,7 @@ class OStorageFactory : public ::cppu::WeakImplHelper2< ::com::sun::star::lang::
::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > m_xContext;
public:
- OStorageFactory( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext )
+ explicit OStorageFactory( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext )
: m_xContext( xContext )
{
OSL_ENSURE( xContext.is(), "No service manager is provided!\n" );
diff --git a/package/source/xstor/xstorage.hxx b/package/source/xstor/xstorage.hxx
index 4e1283affce8..d52a839a787b 100644
--- a/package/source/xstor/xstorage.hxx
+++ b/package/source/xstor/xstorage.hxx
@@ -103,7 +103,7 @@ struct StorageHolder_Impl
OStorage* m_pPointer;
::com::sun::star::uno::WeakReference< ::com::sun::star::embed::XStorage > m_xWeakRef;
- inline StorageHolder_Impl( OStorage* pStorage );
+ explicit inline StorageHolder_Impl( OStorage* pStorage );
StorageHolder_Impl( const StorageHolder_Impl& aSH )
: m_pPointer( aSH.m_pPointer )