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 /sal/qa | |
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 'sal/qa')
-rw-r--r-- | sal/qa/osl/file/osl_File.cxx | 2 | ||||
-rw-r--r-- | sal/qa/osl/module/osl_Module.cxx | 2 | ||||
-rw-r--r-- | sal/qa/osl/process/osl_process.cxx | 2 | ||||
-rw-r--r-- | sal/qa/osl/profile/osl_old_testprofile.cxx | 2 | ||||
-rw-r--r-- | sal/qa/osl/socket/osl_Socket.cxx | 4 | ||||
-rw-r--r-- | sal/qa/osl/socket/sockethelper.cxx | 4 | ||||
-rw-r--r-- | sal/qa/osl/socket/sockethelper.hxx | 4 | ||||
-rw-r--r-- | sal/qa/rtl/process/rtl_Process.cxx | 2 |
8 files changed, 11 insertions, 11 deletions
diff --git a/sal/qa/osl/file/osl_File.cxx b/sal/qa/osl/file/osl_File.cxx index cec250d6f4a1..2b5766225ac1 100644 --- a/sal/qa/osl/file/osl_File.cxx +++ b/sal/qa/osl/file/osl_File.cxx @@ -426,7 +426,7 @@ inline void changeFileMode( ::rtl::OUString & filepath, sal_Int32 mode ) } #endif -inline ::rtl::OUString getCurrentPID( void ); +inline ::rtl::OUString getCurrentPID(); // Beginning of the test cases for FileBase class diff --git a/sal/qa/osl/module/osl_Module.cxx b/sal/qa/osl/module/osl_Module.cxx index be812e04b161..56f781069f28 100644 --- a/sal/qa/osl/module/osl_Module.cxx +++ b/sal/qa/osl/module/osl_Module.cxx @@ -29,7 +29,7 @@ using ::rtl::OString; /** get dll file URL. */ -inline ::rtl::OUString getDllURL( void ) +inline ::rtl::OUString getDllURL() { #if ( defined WNT ) // lib in Unix and lib in Windows are not same in file name. ::rtl::OUString libPath( "test_Module_DLL.dll" ); diff --git a/sal/qa/osl/process/osl_process.cxx b/sal/qa/osl/process/osl_process.cxx index b053f9fdb135..4a9cd425658c 100644 --- a/sal/qa/osl/process/osl_process.cxx +++ b/sal/qa/osl/process/osl_process.cxx @@ -80,7 +80,7 @@ using ::rtl::OString; /** get binary Path. */ -inline ::rtl::OUString getExecutablePath( void ) +inline ::rtl::OUString getExecutablePath() { ::rtl::OUString dirPath; osl::Module::getUrlFromAddress( diff --git a/sal/qa/osl/profile/osl_old_testprofile.cxx b/sal/qa/osl/profile/osl_old_testprofile.cxx index 97ef52143655..3cfba1247d65 100644 --- a/sal/qa/osl/profile/osl_old_testprofile.cxx +++ b/sal/qa/osl/profile/osl_old_testprofile.cxx @@ -38,7 +38,7 @@ namespace osl_Profile CPPUNIT_TEST_SUITE_END( ); }; -void oldtests::test_profile(void) +void oldtests::test_profile() { rtl::OUString baseUrl; CPPUNIT_ASSERT(rtl::Bootstrap::get("UserInstallation", baseUrl)); diff --git a/sal/qa/osl/socket/osl_Socket.cxx b/sal/qa/osl/socket/osl_Socket.cxx index 94eed88daa98..2c9e1ff58f98 100644 --- a/sal/qa/osl/socket/osl_Socket.cxx +++ b/sal/qa/osl/socket/osl_Socket.cxx @@ -128,7 +128,7 @@ inline void printUString( const ::rtl::OUString & str, const sal_Char * msg = "" mindy: gethostbyname( "localhost" ), on Linux, it returns the hostname in /etc/hosts + domain name, if no entry in /etc/hosts, it returns "localhost" + domain name */ -inline ::rtl::OUString getHost( void ) +inline ::rtl::OUString getHost() { struct hostent *hptr; @@ -141,7 +141,7 @@ inline ::rtl::OUString getHost( void ) /** get the full host name of the current processor, such as "aegean.prc.sun.com" --mindyliu */ -inline ::rtl::OUString getThisHostname( void ) +inline ::rtl::OUString getThisHostname() { ::rtl::OUString aUString; #ifdef WNT diff --git a/sal/qa/osl/socket/sockethelper.cxx b/sal/qa/osl/socket/sockethelper.cxx index 3057c350f3a0..df4f5e7c11ca 100644 --- a/sal/qa/osl/socket/sockethelper.cxx +++ b/sal/qa/osl/socket/sockethelper.cxx @@ -86,7 +86,7 @@ void printUString( const ::rtl::OUString & str, const char* msg) mindy: gethostbyname( "localhost" ), on Linux, it returns the hostname in /etc/hosts + domain name, if no entry in /etc/hosts, it returns "localhost" + domain name */ -::rtl::OUString getHost( void ) +::rtl::OUString getHost() { struct hostent *hptr; @@ -99,7 +99,7 @@ void printUString( const ::rtl::OUString & str, const char* msg) /** get the full host name of the current processor, such as "aegean.prc.sun.com" --mindyliu */ -::rtl::OUString getThisHostname( void ) +::rtl::OUString getThisHostname() { ::rtl::OUString aUString; #ifdef WNT diff --git a/sal/qa/osl/socket/sockethelper.hxx b/sal/qa/osl/socket/sockethelper.hxx index 4debc78d87f4..9e400d8f3c05 100644 --- a/sal/qa/osl/socket/sockethelper.hxx +++ b/sal/qa/osl/socket/sockethelper.hxx @@ -109,10 +109,10 @@ void printUString( const ::rtl::OUString & str, const char * msg = "" ); mindy: gethostbyname( "localhost" ), on Linux, it returns the hostname in /etc/hosts + domain name, if no entry in /etc/hosts, it returns "localhost" + domain name */ -::rtl::OUString getHost( void ); +::rtl::OUString getHost(); /** get the full host name of the current processor, such as "aegean.prc.sun.com" --mindyliu */ -::rtl::OUString getThisHostname( void ); +::rtl::OUString getThisHostname(); /** get IP by name, search /etc/hosts first, then search from dns, fail return OUString("") */ ::rtl::OUString getIPbyName( rtl::OString const& str_name ); diff --git a/sal/qa/rtl/process/rtl_Process.cxx b/sal/qa/rtl/process/rtl_Process.cxx index 535b4f1f903b..1cbfb58e073c 100644 --- a/sal/qa/rtl/process/rtl_Process.cxx +++ b/sal/qa/rtl/process/rtl_Process.cxx @@ -53,7 +53,7 @@ inline void printUString( const ::rtl::OUString & str, const sal_Char * msg = NU printf("%s\n", aString.getStr( ) ); } -inline ::rtl::OUString getModulePath( void ) +inline ::rtl::OUString getModulePath() { ::rtl::OUString suDirPath; ::osl::Module::getUrlFromAddress( |