summaryrefslogtreecommitdiff
path: root/vbahelper
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-05-25 12:36:55 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-05-25 15:03:43 +0100
commitc0fe0578273cfb2be404223531d96615fe3c2867 (patch)
treeb68db290f1500fc3095412f2e339cd0ab5863881 /vbahelper
parent3185b6c8caf97afa602c864f588d079cbbe04038 (diff)
cppcheck: noExplicitConstructor
Change-Id: Ic323f07196d8a0d106d9ddf73a06db377c23fb98
Diffstat (limited to 'vbahelper')
-rw-r--r--vbahelper/source/msforms/vbacontrol.cxx4
-rw-r--r--vbahelper/source/msforms/vbacontrols.cxx2
-rw-r--r--vbahelper/source/msforms/vbalistcontrolhelper.hxx2
-rw-r--r--vbahelper/source/msforms/vbamultipage.cxx2
-rw-r--r--vbahelper/source/msforms/vbanewfont.hxx2
-rw-r--r--vbahelper/source/vbahelper/vbacommandbarcontrols.cxx2
-rw-r--r--vbahelper/source/vbahelper/vbadocumentsbase.cxx2
7 files changed, 8 insertions, 8 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
diff --git a/vbahelper/source/vbahelper/vbacommandbarcontrols.cxx b/vbahelper/source/vbahelper/vbacommandbarcontrols.cxx
index b01179e2ac56..a47b33c3d09e 100644
--- a/vbahelper/source/vbahelper/vbacommandbarcontrols.cxx
+++ b/vbahelper/source/vbahelper/vbacommandbarcontrols.cxx
@@ -29,7 +29,7 @@ class CommandBarControlEnumeration : public CommandBarControlEnumeration_BASE
CommandBarControls_BASE* m_pCommandBarControls;
sal_Int32 m_nCurrentPosition;
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
{
if( m_nCurrentPosition < m_pCommandBarControls->getCount() )
diff --git a/vbahelper/source/vbahelper/vbadocumentsbase.cxx b/vbahelper/source/vbahelper/vbadocumentsbase.cxx
index 4f325301c7dc..9540e701f047 100644
--- a/vbahelper/source/vbahelper/vbadocumentsbase.cxx
+++ b/vbahelper/source/vbahelper/vbadocumentsbase.cxx
@@ -80,7 +80,7 @@ public:
{
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< container::XEnumeration > mxComponents = xDesktop->getComponents()->createEnumeration();