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 /shell/source/backends | |
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 'shell/source/backends')
-rw-r--r-- | shell/source/backends/localebe/localebackend.cxx | 16 | ||||
-rw-r--r-- | shell/source/backends/localebe/localebackend.hxx | 12 | ||||
-rw-r--r-- | shell/source/backends/macbe/macbackend.hxx | 6 | ||||
-rw-r--r-- | shell/source/backends/wininetbe/wininetbackend.cxx | 10 | ||||
-rw-r--r-- | shell/source/backends/wininetbe/wininetbackend.hxx | 6 |
5 files changed, 25 insertions, 25 deletions
diff --git a/shell/source/backends/localebe/localebackend.cxx b/shell/source/backends/localebe/localebackend.cxx index f2190d17fbfa..4b5c34a50be1 100644 --- a/shell/source/backends/localebe/localebackend.cxx +++ b/shell/source/backends/localebe/localebackend.cxx @@ -211,7 +211,7 @@ LocaleBackend::LocaleBackend() -LocaleBackend::~LocaleBackend(void) +LocaleBackend::~LocaleBackend() { } @@ -224,7 +224,7 @@ LocaleBackend* LocaleBackend::createInstance() -OUString LocaleBackend::getLocale(void) +OUString LocaleBackend::getLocale() { #if defined WNT return ImplGetLocale( GetUserDefaultLCID() ); @@ -237,7 +237,7 @@ OUString LocaleBackend::getLocale(void) -OUString LocaleBackend::getUILocale(void) +OUString LocaleBackend::getUILocale() { #if defined WNT return ImplGetLocale( MAKELCID(GetUserDefaultUILanguage(), SORT_DEFAULT) ); @@ -250,7 +250,7 @@ OUString LocaleBackend::getUILocale(void) -OUString LocaleBackend::getSystemLocale(void) +OUString LocaleBackend::getSystemLocale() { // note: the implementation differs from getLocale() only on Windows #if defined WNT @@ -302,17 +302,17 @@ css::uno::Any LocaleBackend::getPropertyValue( -OUString SAL_CALL LocaleBackend::getBackendName(void) { +OUString SAL_CALL LocaleBackend::getBackendName() { return OUString("com.sun.star.comp.configuration.backend.LocaleBackend") ; } -OUString SAL_CALL LocaleBackend::getImplementationName(void) +OUString SAL_CALL LocaleBackend::getImplementationName() throw (uno::RuntimeException, std::exception) { return getBackendName() ; } -uno::Sequence<OUString> SAL_CALL LocaleBackend::getBackendServiceNames(void) +uno::Sequence<OUString> SAL_CALL LocaleBackend::getBackendServiceNames() { uno::Sequence<OUString> aServiceNameList(1); aServiceNameList[0] = "com.sun.star.configuration.backend.LocaleBackend"; @@ -325,7 +325,7 @@ sal_Bool SAL_CALL LocaleBackend::supportsService(const OUString& aServiceName) return cppu::supportsService(this, aServiceName); } -uno::Sequence<OUString> SAL_CALL LocaleBackend::getSupportedServiceNames(void) +uno::Sequence<OUString> SAL_CALL LocaleBackend::getSupportedServiceNames() throw (uno::RuntimeException, std::exception) { return getBackendServiceNames() ; diff --git a/shell/source/backends/localebe/localebackend.hxx b/shell/source/backends/localebe/localebackend.hxx index 59a7fbbb108c..29ca23c1d8bd 100644 --- a/shell/source/backends/localebe/localebackend.hxx +++ b/shell/source/backends/localebe/localebackend.hxx @@ -55,13 +55,13 @@ class LocaleBackend : public ::cppu::WeakImplHelper2 < @return implementation name */ - static OUString SAL_CALL getBackendName(void) ; + static OUString SAL_CALL getBackendName() ; /** Provides the supported services names @return service names */ - static uno::Sequence<OUString> SAL_CALL getBackendServiceNames(void) ; + static uno::Sequence<OUString> SAL_CALL getBackendServiceNames() ; // XPropertySet virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL @@ -123,17 +123,17 @@ class LocaleBackend : public ::cppu::WeakImplHelper2 < LocaleBackend(); /** Destructor */ - virtual ~LocaleBackend(void) ; + virtual ~LocaleBackend() ; private: // Returns the user locale - static OUString getLocale(void); + static OUString getLocale(); // Returns the user UI locale - static OUString getUILocale(void); + static OUString getUILocale(); // Returns the system default locale - static OUString getSystemLocale(void); + static OUString getSystemLocale(); } ; diff --git a/shell/source/backends/macbe/macbackend.hxx b/shell/source/backends/macbe/macbackend.hxx index 75d3288ca799..1486d1d9ccfc 100644 --- a/shell/source/backends/macbe/macbackend.hxx +++ b/shell/source/backends/macbe/macbackend.hxx @@ -53,14 +53,14 @@ public: @return implementation name */ - static OUString SAL_CALL getBackendName(void); + static OUString SAL_CALL getBackendName(); /** Provides the supported services names @return service names */ - static uno::Sequence<OUString> SAL_CALL getBackendServiceNames(void); + static uno::Sequence<OUString> SAL_CALL getBackendServiceNames(); // XPropertySet virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL @@ -123,7 +123,7 @@ protected: MacOSXBackend(); /** Destructor */ - virtual ~MacOSXBackend(void); + virtual ~MacOSXBackend(); }; #endif // INCLUDED_SHELL_SOURCE_BACKENDS_MACBE_MACBACKEND_HXX diff --git a/shell/source/backends/wininetbe/wininetbackend.cxx b/shell/source/backends/wininetbe/wininetbackend.cxx index 1c6b4de581d6..23aed71fcf01 100644 --- a/shell/source/backends/wininetbe/wininetbackend.cxx +++ b/shell/source/backends/wininetbe/wininetbackend.cxx @@ -298,7 +298,7 @@ WinInetBackend::WinInetBackend() -WinInetBackend::~WinInetBackend(void) +WinInetBackend::~WinInetBackend() { } @@ -362,19 +362,19 @@ css::uno::Any WinInetBackend::getPropertyValue( -OUString SAL_CALL WinInetBackend::getBackendName(void) { +OUString SAL_CALL WinInetBackend::getBackendName() { return OUString("com.sun.star.comp.configuration.backend.WinInetBackend") ; } -OUString SAL_CALL WinInetBackend::getImplementationName(void) +OUString SAL_CALL WinInetBackend::getImplementationName() throw (uno::RuntimeException) { return getBackendName() ; } -uno::Sequence<OUString> SAL_CALL WinInetBackend::getBackendServiceNames(void) +uno::Sequence<OUString> SAL_CALL WinInetBackend::getBackendServiceNames() { uno::Sequence<OUString> aServiceNameList(1); aServiceNameList[0] = "com.sun.star.configuration.backend.WinInetBackend"; @@ -388,7 +388,7 @@ sal_Bool SAL_CALL WinInetBackend::supportsService(const OUString& aServiceName) return cppu::supportsService(this, aServiceName); } -uno::Sequence<OUString> SAL_CALL WinInetBackend::getSupportedServiceNames(void) +uno::Sequence<OUString> SAL_CALL WinInetBackend::getSupportedServiceNames() throw (uno::RuntimeException) { return getBackendServiceNames() ; diff --git a/shell/source/backends/wininetbe/wininetbackend.hxx b/shell/source/backends/wininetbe/wininetbackend.hxx index 57d6e8333705..a2b87079da63 100644 --- a/shell/source/backends/wininetbe/wininetbackend.hxx +++ b/shell/source/backends/wininetbe/wininetbackend.hxx @@ -55,13 +55,13 @@ class WinInetBackend : public ::cppu::WeakImplHelper2 < @return implementation name */ - static OUString SAL_CALL getBackendName(void) ; + static OUString SAL_CALL getBackendName() ; /** Provides the supported services names @return service names */ - static uno::Sequence<OUString> SAL_CALL getBackendServiceNames(void) ; + static uno::Sequence<OUString> SAL_CALL getBackendServiceNames() ; // XPropertySet virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL @@ -123,7 +123,7 @@ class WinInetBackend : public ::cppu::WeakImplHelper2 < WinInetBackend(); /** Destructor */ - ~WinInetBackend(void) ; + ~WinInetBackend() ; private: com::sun::star::beans::Optional< com::sun::star::uno::Any > |