diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-05-25 12:36:55 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-05-25 15:03:43 +0100 |
commit | c0fe0578273cfb2be404223531d96615fe3c2867 (patch) | |
tree | b68db290f1500fc3095412f2e339cd0ab5863881 /vbahelper/source/msforms | |
parent | 3185b6c8caf97afa602c864f588d079cbbe04038 (diff) |
cppcheck: noExplicitConstructor
Change-Id: Ic323f07196d8a0d106d9ddf73a06db377c23fb98
Diffstat (limited to 'vbahelper/source/msforms')
-rw-r--r-- | vbahelper/source/msforms/vbacontrol.cxx | 4 | ||||
-rw-r--r-- | vbahelper/source/msforms/vbacontrols.cxx | 2 | ||||
-rw-r--r-- | vbahelper/source/msforms/vbalistcontrolhelper.hxx | 2 | ||||
-rw-r--r-- | vbahelper/source/msforms/vbamultipage.cxx | 2 | ||||
-rw-r--r-- | vbahelper/source/msforms/vbanewfont.hxx | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/vbahelper/source/msforms/vbacontrol.cxx b/vbahelper/source/msforms/vbacontrol.cxx index 56bc102c6a15..cdfc8a7242f8 100644 --- a/vbahelper/source/msforms/vbacontrol.cxx +++ b/vbahelper/source/msforms/vbacontrol.cxx @@ -99,7 +99,7 @@ class ScVbaControlListener: public cppu::WeakImplHelper1< lang::XEventListener > private: ScVbaControl *pControl; public: - ScVbaControlListener( ScVbaControl *pTmpControl ); + explicit ScVbaControlListener( ScVbaControl *pTmpControl ); virtual ~ScVbaControlListener(); 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 { uno::Reference< uno::XComponentContext > m_xCtx; 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; }; diff --git a/vbahelper/source/msforms/vbacontrols.cxx b/vbahelper/source/msforms/vbacontrols.cxx index 85a7bd421e6d..ce70d059fb81 100644 --- a/vbahelper/source/msforms/vbacontrols.cxx +++ b/vbahelper/source/msforms/vbacontrols.cxx @@ -82,7 +82,7 @@ private: } } public: - ControlArrayWrapper( const uno::Reference< awt::XControl >& xDialog ) + explicit ControlArrayWrapper( const uno::Reference< awt::XControl >& xDialog ) { try { diff --git a/vbahelper/source/msforms/vbalistcontrolhelper.hxx b/vbahelper/source/msforms/vbalistcontrolhelper.hxx index 3c895bd6d840..ad580f4812da 100644 --- a/vbahelper/source/msforms/vbalistcontrolhelper.hxx +++ b/vbahelper/source/msforms/vbalistcontrolhelper.hxx @@ -27,7 +27,7 @@ class ListControlHelper css::uno::Reference< css::beans::XPropertySet > m_xProps; 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() {} 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); diff --git a/vbahelper/source/msforms/vbamultipage.cxx b/vbahelper/source/msforms/vbamultipage.cxx index 2fb7016ac02e..342203281ab2 100644 --- a/vbahelper/source/msforms/vbamultipage.cxx +++ b/vbahelper/source/msforms/vbamultipage.cxx @@ -31,7 +31,7 @@ class PagesImpl : public PagesImpl_Base { sal_Int32 mnPages; 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 uno::Any SAL_CALL getByIndex( ::sal_Int32 Index ) throw (lang::IndexOutOfBoundsException, lang::WrappedTargetException, ::uno::RuntimeException, std::exception) SAL_OVERRIDE { diff --git a/vbahelper/source/msforms/vbanewfont.hxx b/vbahelper/source/msforms/vbanewfont.hxx index 546cb523133a..5afea0164d62 100644 --- a/vbahelper/source/msforms/vbanewfont.hxx +++ b/vbahelper/source/msforms/vbanewfont.hxx @@ -30,7 +30,7 @@ typedef cppu::WeakImplHelper1< ov::msforms::XNewFont > VbaNewFont_BASE; class VbaNewFont : public VbaNewFont_BASE { public: - VbaNewFont( + explicit VbaNewFont( const css::uno::Reference< css::beans::XPropertySet >& rxModelProps ) throw (css::uno::RuntimeException); // XNewFont attributes |