diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-14 12:44:47 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-04-15 11:47:12 +0200 |
commit | 71b809959bb8f775d83dc52628448bb8b8322b28 (patch) | |
tree | f9aa4308050eb7d55611068602c0cf0e3c1b3690 /basic/source/sbx | |
parent | 135907f2061550624ee1859745d94eee01849070 (diff) |
remove unnecessary use of void in function declarations
ie.
void f(void);
becomes
void f();
I used the following command to make the changes:
git grep -lP '\(\s*void\s*\)' -- *.cxx \
| xargs perl -pi -w -e 's/(\w+)\s*\(\s*void\s*\)/$1\(\)/g;'
and ran it for both .cxx and .hxx files.
Change-Id: I314a1b56e9c14d10726e32841736b0ad5eef8ddd
Diffstat (limited to 'basic/source/sbx')
-rw-r--r-- | basic/source/sbx/sbxdec.cxx | 10 | ||||
-rw-r--r-- | basic/source/sbx/sbxdec.hxx | 8 | ||||
-rw-r--r-- | basic/source/sbx/sbxscan.cxx | 2 | ||||
-rw-r--r-- | basic/source/sbx/sbxvar.cxx | 8 |
4 files changed, 14 insertions, 14 deletions
diff --git a/basic/source/sbx/sbxdec.cxx b/basic/source/sbx/sbxdec.cxx index ba2fc8a40a2e..267bee9a3c0a 100644 --- a/basic/source/sbx/sbxdec.cxx +++ b/basic/source/sbx/sbxdec.cxx @@ -26,7 +26,7 @@ #include <boost/scoped_array.hpp> // Implementation SbxDecimal -SbxDecimal::SbxDecimal( void ) +SbxDecimal::SbxDecimal() { setInt( 0 ); mnRefCount = 0; @@ -118,14 +118,14 @@ bool SbxDecimal::operator *= ( const SbxDecimal &r ) return bRet; } -bool SbxDecimal::neg( void ) +bool SbxDecimal::neg() { HRESULT hResult = VarDecNeg( &maDec, &maDec ); bool bRet = ( hResult == S_OK ); return bRet; } -bool SbxDecimal::isZero( void ) +bool SbxDecimal::isZero() { SbxDecimal aZeroDec; aZeroDec.setLong( 0 ); @@ -306,12 +306,12 @@ bool SbxDecimal::operator *= ( const SbxDecimal &r ) return false; } -bool SbxDecimal::neg( void ) +bool SbxDecimal::neg() { return false; } -bool SbxDecimal::isZero( void ) +bool SbxDecimal::isZero() { return false; } diff --git a/basic/source/sbx/sbxdec.hxx b/basic/source/sbx/sbxdec.hxx index 1e6c91bfddfc..a821c96f9011 100644 --- a/basic/source/sbx/sbxdec.hxx +++ b/basic/source/sbx/sbxdec.hxx @@ -51,13 +51,13 @@ class SbxDecimal sal_Int32 mnRefCount; public: - SbxDecimal( void ); + SbxDecimal(); SbxDecimal( const SbxDecimal& rDec ); SbxDecimal( const com::sun::star::bridge::oleautomation::Decimal& rAutomationDec ); ~SbxDecimal(); - void addRef( void ) + void addRef() { mnRefCount++; } void fillAutomationDecimal( com::sun::star::bridge::oleautomation::Decimal& rAutomationDec ); @@ -98,9 +98,9 @@ public: bool operator += ( const SbxDecimal &r ); bool operator /= ( const SbxDecimal &r ); bool operator *= ( const SbxDecimal &r ); - bool neg( void ); + bool neg(); - bool isZero( void ); + bool isZero(); enum CmpResult { LT, EQ, GT }; friend CmpResult compare( const SbxDecimal &rLeft, const SbxDecimal &rRight ); diff --git a/basic/source/sbx/sbxscan.cxx b/basic/source/sbx/sbxscan.cxx index f22df239205f..6ba986d97bab 100644 --- a/basic/source/sbx/sbxscan.cxx +++ b/basic/source/sbx/sbxscan.cxx @@ -563,7 +563,7 @@ bool SbxValue::Scan( const OUString& rSrc, sal_uInt16* pLen ) } -ResMgr* implGetResMgr( void ) +ResMgr* implGetResMgr() { static ResMgr* pResMgr = NULL; if( !pResMgr ) diff --git a/basic/source/sbx/sbxvar.cxx b/basic/source/sbx/sbxvar.cxx index 56f88c29e7cb..0771c71bc203 100644 --- a/basic/source/sbx/sbxvar.cxx +++ b/basic/source/sbx/sbxvar.cxx @@ -47,7 +47,7 @@ class SbxVariableImpl Reference< XInterface > m_xComListener; StarBASIC* m_pComListenerParentBasic; - SbxVariableImpl( void ) + SbxVariableImpl() : m_pComListenerParentBasic( NULL ) {} SbxVariableImpl( const SbxVariableImpl& r ) @@ -430,7 +430,7 @@ void SbxVariable::SetParent( SbxObject* p ) pParent = p; } -SbxVariableImpl* SbxVariable::getImpl( void ) +SbxVariableImpl* SbxVariable::getImpl() { if( mpSbxVariableImpl == NULL ) { @@ -439,7 +439,7 @@ SbxVariableImpl* SbxVariable::getImpl( void ) return mpSbxVariableImpl; } -const OUString& SbxVariable::GetDeclareClassName( void ) +const OUString& SbxVariable::GetDeclareClassName() { SbxVariableImpl* pImpl = getImpl(); return pImpl->m_aDeclareClassName; @@ -462,7 +462,7 @@ void SbxVariable::SetComListener( ::com::sun::star::uno::Reference< ::com::sun:: #endif } -void SbxVariable::ClearComListener( void ) +void SbxVariable::ClearComListener() { SbxVariableImpl* pImpl = getImpl(); pImpl->m_xComListener.clear(); |