From 71b809959bb8f775d83dc52628448bb8b8322b28 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 14 Apr 2015 12:44:47 +0200 Subject: 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 --- cppuhelper/source/factory.cxx | 12 ++++++------ cppuhelper/source/implbase_ex.cxx | 2 +- cppuhelper/source/propshlp.cxx | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) (limited to 'cppuhelper/source') diff --git a/cppuhelper/source/factory.cxx b/cppuhelper/source/factory.cxx index 8cbec655be6b..a634086fd33b 100644 --- a/cppuhelper/source/factory.cxx +++ b/cppuhelper/source/factory.cxx @@ -104,7 +104,7 @@ public: throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - Sequence< OUString > SAL_CALL getSupportedServiceNames(void) + Sequence< OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; protected: @@ -240,7 +240,7 @@ sal_Bool OSingleFactoryHelper::supportsService( } // XServiceInfo -Sequence< OUString > OSingleFactoryHelper::getSupportedServiceNames(void) +Sequence< OUString > OSingleFactoryHelper::getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException, std::exception) { return aServiceNames; @@ -522,7 +522,7 @@ public: throw (Exception, RuntimeException, std::exception) SAL_OVERRIDE; // XServiceInfo - Sequence< OUString > SAL_CALL getSupportedServiceNames(void) + Sequence< OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; // XUnloadingPreference sal_Bool SAL_CALL releaseOnNotification() @@ -811,7 +811,7 @@ Reference< XInterface > ORegistryFactoryHelper::createModuleFactory() } // XServiceInfo -Sequence< OUString > ORegistryFactoryHelper::getSupportedServiceNames(void) +Sequence< OUString > ORegistryFactoryHelper::getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException, std::exception) { MutexGuard aGuard( aMutex ); @@ -892,7 +892,7 @@ public: throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - Sequence< OUString > SAL_CALL getSupportedServiceNames(void) + Sequence< OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; //XUnloadingPreference sal_Bool SAL_CALL releaseOnNotification() @@ -935,7 +935,7 @@ sal_Bool OFactoryProxyHelper::supportsService(const OUString& ServiceName) } // XServiceInfo -Sequence< OUString > OFactoryProxyHelper::getSupportedServiceNames(void) +Sequence< OUString > OFactoryProxyHelper::getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException, std::exception) { Reference xInfo( xFactory, UNO_QUERY ); diff --git a/cppuhelper/source/implbase_ex.cxx b/cppuhelper/source/implbase_ex.cxx index b32d373dc4cf..4d9e04f01788 100644 --- a/cppuhelper/source/implbase_ex.cxx +++ b/cppuhelper/source/implbase_ex.cxx @@ -48,7 +48,7 @@ namespace cppu /** Shared mutex for implementation helper initialization. Not for public use. */ -::osl::Mutex & SAL_CALL getImplHelperInitMutex(void) +::osl::Mutex & SAL_CALL getImplHelperInitMutex() { return theImplHelperInitMutex::get(); } diff --git a/cppuhelper/source/propshlp.cxx b/cppuhelper/source/propshlp.cxx index f2835f454112..42fdfcae17a5 100644 --- a/cppuhelper/source/propshlp.cxx +++ b/cppuhelper/source/propshlp.cxx @@ -78,7 +78,7 @@ public: OPropertySetHelperInfo_Impl( IPropertyArrayHelper & rHelper_ ); // XPropertySetInfo-methods - virtual Sequence< Property > SAL_CALL getProperties(void) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual Sequence< Property > SAL_CALL getProperties() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual Property SAL_CALL getPropertyByName(const OUString& PropertyName) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual sal_Bool SAL_CALL hasPropertyByName(const OUString& PropertyName) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; }; @@ -96,7 +96,7 @@ OPropertySetHelperInfo_Impl::OPropertySetHelperInfo_Impl( /** * Return the sequence of properties, which are provided through the constructor. */ -Sequence< Property > OPropertySetHelperInfo_Impl::getProperties(void) throw(::com::sun::star::uno::RuntimeException, std::exception) +Sequence< Property > OPropertySetHelperInfo_Impl::getProperties() throw(::com::sun::star::uno::RuntimeException, std::exception) { return aInfos; } @@ -1108,7 +1108,7 @@ sal_Bool OPropertyArrayHelper::fillPropertyMembersByHandle } -Sequence< Property > OPropertyArrayHelper::getProperties(void) +Sequence< Property > OPropertyArrayHelper::getProperties() { return aInfos; } -- cgit