diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-05-04 17:44:09 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-05-04 20:13:53 +0100 |
commit | c8a7a67753de4de78b7834f26f5a87a84bcb24f6 (patch) | |
tree | 342ddeff91f7a0b060e45029791e98050c807c65 /sfx2/source/doc/objxtor.cxx | |
parent | 24736e724e98a3ed63bad5e1917f40302b1de24e (diff) |
cppcheck: noExplicitConstructor
Change-Id: Icb4273515082bffaeb9d8f3ebcec8d76fa4192ef
Diffstat (limited to 'sfx2/source/doc/objxtor.cxx')
-rw-r--r-- | sfx2/source/doc/objxtor.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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; } }; |