summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-05-04 17:44:09 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-05-04 20:13:53 +0100
commitc8a7a67753de4de78b7834f26f5a87a84bcb24f6 (patch)
tree342ddeff91f7a0b060e45029791e98050c807c65
parent24736e724e98a3ed63bad5e1917f40302b1de24e (diff)
cppcheck: noExplicitConstructor
Change-Id: Icb4273515082bffaeb9d8f3ebcec8d76fa4192ef
-rw-r--r--sfx2/source/doc/objmisc.cxx2
-rw-r--r--sfx2/source/doc/objxtor.cxx4
-rw-r--r--sfx2/source/view/frmload.cxx2
-rw-r--r--sfx2/source/view/impframe.hxx2
-rw-r--r--sfx2/source/view/impviewframe.hxx2
5 files changed, 6 insertions, 6 deletions
diff --git a/sfx2/source/doc/objmisc.cxx b/sfx2/source/doc/objmisc.cxx
index 3aa652121d62..e66d596a2741 100644
--- a/sfx2/source/doc/objmisc.cxx
+++ b/sfx2/source/doc/objmisc.cxx
@@ -146,7 +146,7 @@ private:
bool bAlert;
public:
- SfxHeaderAttributes_Impl( SfxObjectShell* pSh ) :
+ explicit SfxHeaderAttributes_Impl( SfxObjectShell* pSh ) :
SvKeyValueIterator(), pDoc( pSh ),
xIter( pSh->GetMedium()->GetHeaderAttributes_Impl() ),
bAlert( false ) {}
diff --git a/sfx2/source/doc/objxtor.cxx b/sfx2/source/doc/objxtor.cxx
index bfbe5d3e9e95..526f66e5f64a 100644
--- a/sfx2/source/doc/objxtor.cxx
+++ b/sfx2/source/doc/objxtor.cxx
@@ -151,7 +151,7 @@ class SfxModelListener_Impl : public ::cppu::WeakImplHelper1< ::com::sun::star::
{
SfxObjectShell* mpDoc;
public:
- SfxModelListener_Impl( SfxObjectShell* pDoc ) : mpDoc(pDoc) {};
+ explicit SfxModelListener_Impl( SfxObjectShell* pDoc ) : mpDoc(pDoc) {};
virtual void SAL_CALL queryClosing( const com::sun::star::lang::EventObject& aEvent, sal_Bool bDeliverOwnership )
throw ( com::sun::star::uno::RuntimeException, com::sun::star::util::CloseVetoException, std::exception) SAL_OVERRIDE ;
virtual void SAL_CALL notifyClosing( const com::sun::star::lang::EventObject& aEvent ) throw ( com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE ;
@@ -569,7 +569,7 @@ bool SfxObjectShell::IsInPrepareClose() const
struct BoolEnv_Impl
{
SfxObjectShell_Impl* pImp;
- BoolEnv_Impl( SfxObjectShell_Impl* pImpP) : pImp( pImpP )
+ explicit BoolEnv_Impl( SfxObjectShell_Impl* pImpP) : pImp( pImpP )
{ pImpP->bInPrepareClose = true; }
~BoolEnv_Impl() { pImp->bInPrepareClose = false; }
};
diff --git a/sfx2/source/view/frmload.cxx b/sfx2/source/view/frmload.cxx
index 0f6ea883211f..2cc886a823c5 100644
--- a/sfx2/source/view/frmload.cxx
+++ b/sfx2/source/view/frmload.cxx
@@ -108,7 +108,7 @@ class SfxFrameLoader_Impl : public ::cppu::WeakImplHelper2< css::frame::XSynchro
css::uno::Reference < css::uno::XComponentContext > m_aContext;
public:
- SfxFrameLoader_Impl( const css::uno::Reference < css::uno::XComponentContext >& _rxContext );
+ explicit SfxFrameLoader_Impl( const css::uno::Reference < css::uno::XComponentContext >& _rxContext );
virtual OUString SAL_CALL getImplementationName()
throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
diff --git a/sfx2/source/view/impframe.hxx b/sfx2/source/view/impframe.hxx
index 271ef70c1d45..c3e72283471e 100644
--- a/sfx2/source/view/impframe.hxx
+++ b/sfx2/source/view/impframe.hxx
@@ -56,7 +56,7 @@ public:
bool bLockResize;
bool bMenuBarOn;
- SfxFrame_Impl( SfxFrame* pAntiImplP )
+ explicit SfxFrame_Impl( SfxFrame* pAntiImplP )
:nType( 0L )
,pCurrentViewFrame( NULL )
,pDescr( NULL )
diff --git a/sfx2/source/view/impviewframe.hxx b/sfx2/source/view/impviewframe.hxx
index 0f8bfdc47f85..9a17941d1192 100644
--- a/sfx2/source/view/impviewframe.hxx
+++ b/sfx2/source/view/impviewframe.hxx
@@ -53,7 +53,7 @@ struct SfxViewFrame_Impl
::boost::optional< bool >
aHasToolPanels;
- SfxViewFrame_Impl(SfxFrame& i_rFrame)
+ explicit SfxViewFrame_Impl(SfxFrame& i_rFrame)
: rFrame(i_rFrame)
, pReloader(0)
, pWindow(0)