diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-06-01 21:04:06 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-06-02 08:57:56 +0100 |
commit | 8e22cd40ec9f7d97bde49dd4c8593fc5bfb52e29 (patch) | |
tree | 9ba83232a259a1e895fc0ed5d2820d260ab38bd2 /basic/source | |
parent | 29177c9e05717fca77be6877843945f6e4d9633a (diff) |
cppcheck: noExplicitConstructor
Change-Id: I8ae8623252546ca94f65fc04b331dd9cafa4fc92
Diffstat (limited to 'basic/source')
-rw-r--r-- | basic/source/basmgr/basmgr.cxx | 8 | ||||
-rw-r--r-- | basic/source/basmgr/vbahelper.cxx | 2 | ||||
-rw-r--r-- | basic/source/classes/sb.cxx | 2 | ||||
-rw-r--r-- | basic/source/classes/sbunoobj.cxx | 6 | ||||
-rw-r--r-- | basic/source/classes/sbxmod.cxx | 2 | ||||
-rw-r--r-- | basic/source/runtime/comenumwrapper.hxx | 2 | ||||
-rw-r--r-- | basic/source/runtime/iosys.cxx | 4 | ||||
-rw-r--r-- | basic/source/sbx/sbxdec.hxx | 2 | ||||
-rw-r--r-- | basic/source/sbx/sbxres.hxx | 2 | ||||
-rw-r--r-- | basic/source/sbx/sbxscan.cxx | 2 |
10 files changed, 16 insertions, 16 deletions
diff --git a/basic/source/basmgr/basmgr.cxx b/basic/source/basmgr/basmgr.cxx index b00cbab0fc3f..c7a847654f7c 100644 --- a/basic/source/basmgr/basmgr.cxx +++ b/basic/source/basmgr/basmgr.cxx @@ -1794,7 +1794,7 @@ class ModuleContainer_Impl : public NameContainerHelper StarBASIC* mpLib; public: - ModuleContainer_Impl( StarBASIC* pLib ) + explicit ModuleContainer_Impl( StarBASIC* pLib ) :mpLib( pLib ) {} // Methods XElementAccess @@ -1945,7 +1945,7 @@ class DialogContainer_Impl : public NameContainerHelper StarBASIC* mpLib; public: - DialogContainer_Impl( StarBASIC* pLib ) + explicit DialogContainer_Impl( StarBASIC* pLib ) :mpLib( pLib ) {} // Methods XElementAccess @@ -2102,7 +2102,7 @@ class LibraryContainer_Impl : public NameContainerHelper BasicManager* mpMgr; public: - LibraryContainer_Impl( BasicManager* pMgr ) + explicit LibraryContainer_Impl( BasicManager* pMgr ) :mpMgr( pMgr ) {} // Methods XElementAccess @@ -2251,7 +2251,7 @@ class StarBasicAccess_Impl : public StarBasicAccessHelper uno::Reference< container::XNameContainer > mxLibContainer; public: - StarBasicAccess_Impl( BasicManager* pMgr ) + explicit StarBasicAccess_Impl( BasicManager* pMgr ) :mpMgr( pMgr ) {} public: diff --git a/basic/source/basmgr/vbahelper.cxx b/basic/source/basmgr/vbahelper.cxx index dbd82c8aa44c..c61b0e9097ae 100644 --- a/basic/source/basmgr/vbahelper.cxx +++ b/basic/source/basmgr/vbahelper.cxx @@ -55,7 +55,7 @@ uno::Reference< frame::XModuleManager2 > lclCreateModuleManager() class DocumentsEnumeration : public ::cppu::WeakImplHelper1< container::XEnumeration > { public: - DocumentsEnumeration( const uno::Reference< frame::XModel >& rxModel ); + explicit DocumentsEnumeration( const uno::Reference< frame::XModel >& rxModel ); virtual sal_Bool SAL_CALL hasMoreElements() throw (uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual uno::Any SAL_CALL nextElement() throw (container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException, std::exception) SAL_OVERRIDE; private: diff --git a/basic/source/classes/sb.cxx b/basic/source/classes/sb.cxx index 01e6d9475b7b..647e2128cc7f 100644 --- a/basic/source/classes/sb.cxx +++ b/basic/source/classes/sb.cxx @@ -1179,7 +1179,7 @@ struct ClassModuleRunInitItem , m_bProcessing( false ) , m_bRunInitDone( false ) {} - ClassModuleRunInitItem( SbModule* pModule ) + explicit ClassModuleRunInitItem( SbModule* pModule ) : m_pModule( pModule ) , m_bProcessing( false ) , m_bRunInitDone( false ) diff --git a/basic/source/classes/sbunoobj.cxx b/basic/source/classes/sbunoobj.cxx index ca2587f3078e..6bc596fcc568 100644 --- a/basic/source/classes/sbunoobj.cxx +++ b/basic/source/classes/sbunoobj.cxx @@ -457,7 +457,7 @@ struct ObjectItem { SbxObjectRef m_xNativeObj; - ObjectItem( SbxObject* pNativeObj ) + explicit ObjectItem( SbxObject* pNativeObj ) : m_xNativeObj( pNativeObj ) {} }; @@ -3896,7 +3896,7 @@ public: SbxObjectRef xSbxObj; OUString aPrefixName; - BasicAllListener_Impl( const OUString& aPrefixName ); + explicit BasicAllListener_Impl( const OUString& aPrefixName ); virtual ~BasicAllListener_Impl(); // Methods of XAllListener @@ -4590,7 +4590,7 @@ struct StarBasicDisposeItem SbxArrayRef m_pRegisteredVariables; ComponentRefVector m_vComImplementsObjects; - StarBasicDisposeItem( StarBASIC* pBasic ) + explicit StarBasicDisposeItem( StarBASIC* pBasic ) : m_pBasic( pBasic ) { m_pRegisteredVariables = new SbxArray(); diff --git a/basic/source/classes/sbxmod.cxx b/basic/source/classes/sbxmod.cxx index 568340e6782b..81af910b8984 100644 --- a/basic/source/classes/sbxmod.cxx +++ b/basic/source/classes/sbxmod.cxx @@ -99,7 +99,7 @@ class DocObjectWrapper : public DocObjectWrapper_BASE OUString mName; // for debugging public: - DocObjectWrapper( SbModule* pMod ); + explicit DocObjectWrapper( SbModule* pMod ); virtual ~DocObjectWrapper(); virtual void SAL_CALL acquire() throw() SAL_OVERRIDE; diff --git a/basic/source/runtime/comenumwrapper.hxx b/basic/source/runtime/comenumwrapper.hxx index 30517b5cebc8..cb604b901049 100644 --- a/basic/source/runtime/comenumwrapper.hxx +++ b/basic/source/runtime/comenumwrapper.hxx @@ -31,7 +31,7 @@ class ComEnumerationWrapper : public ::cppu::WeakImplHelper1< ::com::sun::star:: sal_Int32 m_nCurInd; public: - ComEnumerationWrapper( const ::com::sun::star::uno::Reference< ::com::sun::star::script::XInvocation >& xInvocation ) + explicit ComEnumerationWrapper( const ::com::sun::star::uno::Reference< ::com::sun::star::script::XInvocation >& xInvocation ) : m_xInvocation( xInvocation ) , m_nCurInd( 0 ) { diff --git a/basic/source/runtime/iosys.cxx b/basic/source/runtime/iosys.cxx index 40fb2f63be77..cdc4248724e6 100644 --- a/basic/source/runtime/iosys.cxx +++ b/basic/source/runtime/iosys.cxx @@ -413,8 +413,8 @@ class UCBStream : public SvStream Reference< XStream > xS; Reference< XSeekable > xSeek; public: - UCBStream( Reference< XInputStream > & xIS ); - UCBStream( Reference< XStream > & xS ); + explicit UCBStream( Reference< XInputStream > & xIS ); + explicit UCBStream( Reference< XStream > & xS ); virtual ~UCBStream(); virtual sal_Size GetData( void* pData, sal_Size nSize ) SAL_OVERRIDE; virtual sal_Size PutData( const void* pData, sal_Size nSize ) SAL_OVERRIDE; diff --git a/basic/source/sbx/sbxdec.hxx b/basic/source/sbx/sbxdec.hxx index a821c96f9011..1bed80e87f6b 100644 --- a/basic/source/sbx/sbxdec.hxx +++ b/basic/source/sbx/sbxdec.hxx @@ -53,7 +53,7 @@ class SbxDecimal public: SbxDecimal(); SbxDecimal( const SbxDecimal& rDec ); - SbxDecimal( const com::sun::star::bridge::oleautomation::Decimal& rAutomationDec ); + explicit SbxDecimal( const com::sun::star::bridge::oleautomation::Decimal& rAutomationDec ); ~SbxDecimal(); diff --git a/basic/source/sbx/sbxres.hxx b/basic/source/sbx/sbxres.hxx index c635dd20997d..aafb73d98119 100644 --- a/basic/source/sbx/sbxres.hxx +++ b/basic/source/sbx/sbxres.hxx @@ -48,7 +48,7 @@ class SbxRes : public OUString { public: - SbxRes( sal_uInt16 ); + explicit SbxRes( sal_uInt16 ); }; const char* GetSbxRes( sal_uInt16 ); diff --git a/basic/source/sbx/sbxscan.cxx b/basic/source/sbx/sbxscan.cxx index 6ba986d97bab..8a520b4a450e 100644 --- a/basic/source/sbx/sbxscan.cxx +++ b/basic/source/sbx/sbxscan.cxx @@ -576,7 +576,7 @@ ResMgr* implGetResMgr() class SbxValueFormatResId : public ResId { public: - SbxValueFormatResId( sal_uInt16 nId ) + explicit SbxValueFormatResId( sal_uInt16 nId ) : ResId( nId, *implGetResMgr() ) {} }; |