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 /basctl | |
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 'basctl')
-rw-r--r-- | basctl/source/basicide/baside2b.cxx | 8 | ||||
-rw-r--r-- | basctl/source/basicide/localizationmgr.cxx | 4 | ||||
-rw-r--r-- | basctl/source/basicide/moduldl2.cxx | 2 | ||||
-rw-r--r-- | basctl/source/basicide/unomodel.cxx | 6 | ||||
-rw-r--r-- | basctl/source/basicide/unomodel.hxx | 4 | ||||
-rw-r--r-- | basctl/source/inc/localizationmgr.hxx | 14 |
6 files changed, 19 insertions, 19 deletions
diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx index a27aa8ebead9..f81a931f74f7 100644 --- a/basctl/source/basicide/baside2b.cxx +++ b/basctl/source/basicide/baside2b.cxx @@ -1733,11 +1733,11 @@ struct WatchItem maMemberList.clear(); } - WatchItem* GetRootItem( void ); - SbxDimArray* GetRootArray( void ); + WatchItem* GetRootItem(); + SbxDimArray* GetRootArray(); }; -WatchItem* WatchItem::GetRootItem( void ) +WatchItem* WatchItem::GetRootItem() { WatchItem* pItem = mpArrayParentItem; while( pItem ) @@ -1749,7 +1749,7 @@ WatchItem* WatchItem::GetRootItem( void ) return pItem; } -SbxDimArray* WatchItem::GetRootArray( void ) +SbxDimArray* WatchItem::GetRootArray() { WatchItem* pRootItem = GetRootItem(); SbxDimArray* pRet = NULL; diff --git a/basctl/source/basicide/localizationmgr.cxx b/basctl/source/basicide/localizationmgr.cxx index 4b41ee3eed3a..7fa7f8d5429d 100644 --- a/basctl/source/basicide/localizationmgr.cxx +++ b/basctl/source/basicide/localizationmgr.cxx @@ -778,13 +778,13 @@ void LocalizationMgr::handleSetCurrentLocale(const css::lang::Locale& rLocale) } } -void LocalizationMgr::handleBasicStarted( void ) +void LocalizationMgr::handleBasicStarted() { if( m_xStringResourceManager.is() ) m_aLocaleBeforeBasicStart = m_xStringResourceManager->getCurrentLocale(); } -void LocalizationMgr::handleBasicStopped( void ) +void LocalizationMgr::handleBasicStopped() { try { diff --git a/basctl/source/basicide/moduldl2.cxx b/basctl/source/basicide/moduldl2.cxx index ea06d718b3cb..8793ca43aa89 100644 --- a/basctl/source/basicide/moduldl2.cxx +++ b/basctl/source/basicide/moduldl2.cxx @@ -1041,7 +1041,7 @@ void LibPage::InsertLib() } } -void LibPage::Export( void ) +void LibPage::Export() { SvTreeListEntry* pCurEntry = m_pLibBox->GetCurEntry(); OUString aLibName( SvTabListBox::GetEntryText( pCurEntry, 0 ) ); diff --git a/basctl/source/basicide/unomodel.cxx b/basctl/source/basicide/unomodel.cxx index 5ae9d532d4e5..db1c9bc1c42d 100644 --- a/basctl/source/basicide/unomodel.cxx +++ b/basctl/source/basicide/unomodel.cxx @@ -78,7 +78,7 @@ uno::Sequence< uno::Type > SAL_CALL SIDEModel::getTypes( ) throw(uno::RuntimeEx return aTypes; } -OUString SIDEModel::getImplementationName(void) throw( uno::RuntimeException, std::exception ) +OUString SIDEModel::getImplementationName() throw( uno::RuntimeException, std::exception ) { return getImplementationName_Static(); } @@ -92,12 +92,12 @@ sal_Bool SIDEModel::supportsService(const OUString& rServiceName) throw( uno::Ru { return cppu::supportsService(this, rServiceName); } -uno::Sequence< OUString > SIDEModel::getSupportedServiceNames(void) throw( uno::RuntimeException, std::exception ) +uno::Sequence< OUString > SIDEModel::getSupportedServiceNames() throw( uno::RuntimeException, std::exception ) { return getSupportedServiceNames_Static(); } -uno::Sequence< OUString > SIDEModel::getSupportedServiceNames_Static(void) +uno::Sequence< OUString > SIDEModel::getSupportedServiceNames_Static() { uno::Sequence< OUString > aRet(1); OUString* pArray = aRet.getArray(); diff --git a/basctl/source/basicide/unomodel.hxx b/basctl/source/basicide/unomodel.hxx index e18383e7b278..e7225c91124b 100644 --- a/basctl/source/basicide/unomodel.hxx +++ b/basctl/source/basicide/unomodel.hxx @@ -42,11 +42,11 @@ public: virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; //XServiceInfo - virtual OUString SAL_CALL getImplementationName(void) + virtual OUString SAL_CALL getImplementationName() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; - virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames(void) + virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; // XStorable2 virtual void SAL_CALL storeSelf( const ::com::sun::star::uno::Sequence< css::beans::PropertyValue >& ) diff --git a/basctl/source/inc/localizationmgr.hxx b/basctl/source/inc/localizationmgr.hxx index 54376cc44a10..f118dfe9a101 100644 --- a/basctl/source/inc/localizationmgr.hxx +++ b/basctl/source/inc/localizationmgr.hxx @@ -58,11 +58,11 @@ class LocalizationMgr xStringResourceManager, ::com::sun::star::uno::Reference< ::com::sun::star::resource:: XStringResourceResolver > xSourceStringResolver, HandleResourceMode eMode ); - void enableResourceForAllLibraryDialogs( void ) + void enableResourceForAllLibraryDialogs() { implEnableDisableResourceForAllLibraryDialogs( SET_IDS ); } - void disableResourceForAllLibraryDialogs( void ) + void disableResourceForAllLibraryDialogs() { implEnableDisableResourceForAllLibraryDialogs( RESET_IDS ); } @@ -73,14 +73,14 @@ public: const ::com::sun::star::uno::Reference < ::com::sun::star::resource::XStringResourceManager >& xStringResourceManager ); ::com::sun::star::uno::Reference - < ::com::sun::star::resource::XStringResourceManager >getStringResourceManager( void ) + < ::com::sun::star::resource::XStringResourceManager >getStringResourceManager() { return m_xStringResourceManager; } - bool isLibraryLocalized( void ); + bool isLibraryLocalized(); - void handleTranslationbar( void ); + void handleTranslationbar(); void handleAddLocales( const ::com::sun::star::uno::Sequence < ::com::sun::star::lang::Locale >& aLocaleSeq ); @@ -92,9 +92,9 @@ public: void handleSetCurrentLocale(const css::lang::Locale& rLocale); - void handleBasicStarted( void ); + void handleBasicStarted(); - void handleBasicStopped( void ); + void handleBasicStopped(); static void setControlResourceIDsForNewEditorObject(DlgEditor* pEditor, const css::uno::Any& rControlAny, const OUString& aCtrlName); |