Kaydet (Commit) c0fe0578 authored tarafından Caolán McNamara's avatar Caolán McNamara

cppcheck: noExplicitConstructor

Change-Id: Ic323f07196d8a0d106d9ddf73a06db377c23fb98
üst 3185b6c8
...@@ -99,7 +99,7 @@ class ScVbaControlListener: public cppu::WeakImplHelper1< lang::XEventListener > ...@@ -99,7 +99,7 @@ class ScVbaControlListener: public cppu::WeakImplHelper1< lang::XEventListener >
private: private:
ScVbaControl *pControl; ScVbaControl *pControl;
public: public:
ScVbaControlListener( ScVbaControl *pTmpControl ); explicit ScVbaControlListener( ScVbaControl *pTmpControl );
virtual ~ScVbaControlListener(); virtual ~ScVbaControlListener();
virtual void SAL_CALL disposing( const lang::EventObject& rEventObject ) throw( uno::RuntimeException, std::exception ) SAL_OVERRIDE; virtual void SAL_CALL disposing( const lang::EventObject& rEventObject ) throw( uno::RuntimeException, std::exception ) SAL_OVERRIDE;
}; };
...@@ -776,7 +776,7 @@ class ControlProviderImpl : public ControlProvider_BASE ...@@ -776,7 +776,7 @@ class ControlProviderImpl : public ControlProvider_BASE
{ {
uno::Reference< uno::XComponentContext > m_xCtx; uno::Reference< uno::XComponentContext > m_xCtx;
public: public:
ControlProviderImpl( const uno::Reference< uno::XComponentContext >& xCtx ) : m_xCtx( xCtx ) {} explicit ControlProviderImpl( const uno::Reference< uno::XComponentContext >& xCtx ) : m_xCtx( xCtx ) {}
virtual uno::Reference< msforms::XControl > SAL_CALL createControl( const uno::Reference< drawing::XControlShape >& xControl, const uno::Reference< frame::XModel >& xDocOwner ) throw (uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual uno::Reference< msforms::XControl > SAL_CALL createControl( const uno::Reference< drawing::XControlShape >& xControl, const uno::Reference< frame::XModel >& xDocOwner ) throw (uno::RuntimeException, std::exception) SAL_OVERRIDE;
}; };
......
...@@ -82,7 +82,7 @@ private: ...@@ -82,7 +82,7 @@ private:
} }
} }
public: public:
ControlArrayWrapper( const uno::Reference< awt::XControl >& xDialog ) explicit ControlArrayWrapper( const uno::Reference< awt::XControl >& xDialog )
{ {
try try
{ {
......
...@@ -27,7 +27,7 @@ class ListControlHelper ...@@ -27,7 +27,7 @@ class ListControlHelper
css::uno::Reference< css::beans::XPropertySet > m_xProps; css::uno::Reference< css::beans::XPropertySet > m_xProps;
public: public:
ListControlHelper( const css::uno::Reference< css::beans::XPropertySet >& rxControl ) : m_xProps( rxControl ){} explicit ListControlHelper( const css::uno::Reference< css::beans::XPropertySet >& rxControl ) : m_xProps( rxControl ){}
virtual ~ListControlHelper() {} virtual ~ListControlHelper() {}
void SAL_CALL AddItem( const css::uno::Any& pvargItem, const css::uno::Any& pvargIndex ) throw (css::uno::RuntimeException); void SAL_CALL AddItem( const css::uno::Any& pvargItem, const css::uno::Any& pvargIndex ) throw (css::uno::RuntimeException);
void SAL_CALL removeItem( const css::uno::Any& index ) throw (css::uno::RuntimeException); void SAL_CALL removeItem( const css::uno::Any& index ) throw (css::uno::RuntimeException);
......
...@@ -31,7 +31,7 @@ class PagesImpl : public PagesImpl_Base ...@@ -31,7 +31,7 @@ class PagesImpl : public PagesImpl_Base
{ {
sal_Int32 mnPages; sal_Int32 mnPages;
public: public:
PagesImpl( sal_Int32 nPages ) : mnPages( nPages ) {} explicit PagesImpl( sal_Int32 nPages ) : mnPages( nPages ) {}
virtual ::sal_Int32 SAL_CALL getCount() throw (uno::RuntimeException, std::exception) SAL_OVERRIDE { return mnPages; } virtual ::sal_Int32 SAL_CALL getCount() throw (uno::RuntimeException, std::exception) SAL_OVERRIDE { return mnPages; }
virtual uno::Any SAL_CALL getByIndex( ::sal_Int32 Index ) throw (lang::IndexOutOfBoundsException, lang::WrappedTargetException, ::uno::RuntimeException, std::exception) SAL_OVERRIDE virtual uno::Any SAL_CALL getByIndex( ::sal_Int32 Index ) throw (lang::IndexOutOfBoundsException, lang::WrappedTargetException, ::uno::RuntimeException, std::exception) SAL_OVERRIDE
{ {
......
...@@ -30,7 +30,7 @@ typedef cppu::WeakImplHelper1< ov::msforms::XNewFont > VbaNewFont_BASE; ...@@ -30,7 +30,7 @@ typedef cppu::WeakImplHelper1< ov::msforms::XNewFont > VbaNewFont_BASE;
class VbaNewFont : public VbaNewFont_BASE class VbaNewFont : public VbaNewFont_BASE
{ {
public: public:
VbaNewFont( explicit VbaNewFont(
const css::uno::Reference< css::beans::XPropertySet >& rxModelProps ) throw (css::uno::RuntimeException); const css::uno::Reference< css::beans::XPropertySet >& rxModelProps ) throw (css::uno::RuntimeException);
// XNewFont attributes // XNewFont attributes
......
...@@ -29,7 +29,7 @@ class CommandBarControlEnumeration : public CommandBarControlEnumeration_BASE ...@@ -29,7 +29,7 @@ class CommandBarControlEnumeration : public CommandBarControlEnumeration_BASE
CommandBarControls_BASE* m_pCommandBarControls; CommandBarControls_BASE* m_pCommandBarControls;
sal_Int32 m_nCurrentPosition; sal_Int32 m_nCurrentPosition;
public: public:
CommandBarControlEnumeration( CommandBarControls_BASE* pCommandBarControls ) : m_pCommandBarControls( pCommandBarControls ), m_nCurrentPosition( 0 ) {} explicit CommandBarControlEnumeration( CommandBarControls_BASE* pCommandBarControls ) : m_pCommandBarControls( pCommandBarControls ), m_nCurrentPosition( 0 ) {}
virtual sal_Bool SAL_CALL hasMoreElements() throw ( uno::RuntimeException, std::exception ) SAL_OVERRIDE virtual sal_Bool SAL_CALL hasMoreElements() throw ( uno::RuntimeException, std::exception ) SAL_OVERRIDE
{ {
if( m_nCurrentPosition < m_pCommandBarControls->getCount() ) if( m_nCurrentPosition < m_pCommandBarControls->getCount() )
......
...@@ -80,7 +80,7 @@ public: ...@@ -80,7 +80,7 @@ public:
{ {
m_it = m_documents.begin(); m_it = m_documents.begin();
} }
DocumentsEnumImpl( const uno::Reference< uno::XComponentContext >& xContext ) throw ( uno::RuntimeException ) : m_xContext( xContext ) explicit DocumentsEnumImpl( const uno::Reference< uno::XComponentContext >& xContext ) throw ( uno::RuntimeException ) : m_xContext( xContext )
{ {
uno::Reference< frame::XDesktop2 > xDesktop = frame::Desktop::create( m_xContext ); uno::Reference< frame::XDesktop2 > xDesktop = frame::Desktop::create( m_xContext );
uno::Reference< container::XEnumeration > mxComponents = xDesktop->getComponents()->createEnumeration(); uno::Reference< container::XEnumeration > mxComponents = xDesktop->getComponents()->createEnumeration();
......
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