cppcheck: noExplicitConstructor

Change-Id: Icb4273515082bffaeb9d8f3ebcec8d76fa4192ef
This commit is contained in:
Caolán McNamara
2015-05-04 17:44:09 +01:00
parent 24736e724e
commit c8a7a67753
5 changed files with 6 additions and 6 deletions

View File

@@ -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 ) {}

View File

@@ -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; }
};

View File

@@ -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;

View File

@@ -56,7 +56,7 @@ public:
bool bLockResize;
bool bMenuBarOn;
SfxFrame_Impl( SfxFrame* pAntiImplP )
explicit SfxFrame_Impl( SfxFrame* pAntiImplP )
:nType( 0L )
,pCurrentViewFrame( NULL )
,pDescr( NULL )

View File

@@ -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)