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/workben | |
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/workben')
-rw-r--r-- | sal/workben/clipboardwben/testviewer/cbvtest.cxx | 4 | ||||
-rw-r--r-- | sal/workben/test.cxx | 2 | ||||
-rw-r--r-- | sal/workben/testfile.cxx | 42 | ||||
-rw-r--r-- | sal/workben/testpip2.cxx | 2 | ||||
-rw-r--r-- | sal/workben/testproc.cxx | 2 |
5 files changed, 26 insertions, 26 deletions
diff --git a/sal/workben/clipboardwben/testviewer/cbvtest.cxx b/sal/workben/clipboardwben/testviewer/cbvtest.cxx index f6057c86909a..b68375bb5e8d 100644 --- a/sal/workben/clipboardwben/testviewer/cbvtest.cxx +++ b/sal/workben/clipboardwben/testviewer/cbvtest.cxx @@ -59,7 +59,7 @@ void RegisterClipboardViewer( BOOL bRegister ); void ShowAvailableClipboardFormats( HWND hWnd, HDC hdc, PAINTSTRUCT ps, RECT rcWnd ); void ClearClipboardContent( HWND hWnd ); -void CALLBACK OnClipboardContentChange( void ); +void CALLBACK OnClipboardContentChange(); LRESULT CALLBACK WndProc( HWND, UINT, WPARAM, LPARAM ); LRESULT CALLBACK About( HWND, UINT, WPARAM, LPARAM ); @@ -322,7 +322,7 @@ void ClearClipboardContent( HWND hWnd ) } // clipboard viewer callback function -void CALLBACK OnClipboardContentChange( void ) +void CALLBACK OnClipboardContentChange() { ++g_nCBChanges; InvalidateRect( g_hwndMain, NULL, TRUE ); diff --git a/sal/workben/test.cxx b/sal/workben/test.cxx index 0d04bece1686..faed0d8822ee 100644 --- a/sal/workben/test.cxx +++ b/sal/workben/test.cxx @@ -28,7 +28,7 @@ int _cdecl main( int argc, char * argv[] ) void test_int64(); test_int64(); - void test_profile(void); + void test_profile(); test_profile(); void test_OString(); diff --git a/sal/workben/testfile.cxx b/sal/workben/testfile.cxx index cbe504317197..addb1b6b8603 100644 --- a/sal/workben/testfile.cxx +++ b/sal/workben/testfile.cxx @@ -105,7 +105,7 @@ sal_Bool testLineBreak( sal_Char *pCount , sal_uInt64 nLen , sal_uInt32 *cLineBr // Initialization -sal_Bool Initialize( void ) +sal_Bool Initialize() { DirectoryItem aItem; FileStatus aStatus( osl_FileStatus_Mask_All ); @@ -258,7 +258,7 @@ sal_Bool Initialize( void ) // Shutdown -sal_Bool Shutdown( void ) +sal_Bool Shutdown() { sal_Bool fSuccess=sal_True; FileBase::RC rc; @@ -425,7 +425,7 @@ TimeValue getSystemTime() // DirectoryOpenAndCloseTest -void DirectoryOpenAndCloseTest( void ) +void DirectoryOpenAndCloseTest() { FileBase::RC rc; Directory *pDir; @@ -536,7 +536,7 @@ void DirectoryOpenAndCloseTest( void ) // DirectoryCreateAndRemoveTest -void DirectoryCreateAndRemoveTest( void ) +void DirectoryCreateAndRemoveTest() { FileBase::RC rc,rc1; Directory *pDir; @@ -614,7 +614,7 @@ void DirectoryCreateAndRemoveTest( void ) // FileOpenAndCloseTest -static void FileOpenAndCloseTest( void ) +static void FileOpenAndCloseTest() { FileBase::RC rc; @@ -720,7 +720,7 @@ void FileCreateAndRemoveTest() // FileWriteAndReadTest -void FileWriteAndReadTest( void ) +void FileWriteAndReadTest() { FileBase::RC rc; @@ -804,7 +804,7 @@ void FileWriteAndReadTest( void ) // FileCopyMoveTest -void FileCopyAndMoveTest( void ) +void FileCopyAndMoveTest() { FileBase::RC rc; @@ -962,7 +962,7 @@ void FileCopyAndMoveTest( void ) // FileSizeTest -void FileSizeTest( void ) +void FileSizeTest() { FileBase::RC rc; sal_uInt64 filesize; @@ -1042,7 +1042,7 @@ void FileSizeTest( void ) // FilePointerTest -void FilePointerTest( void ) +void FilePointerTest() { FileBase::RC rc; sal_uInt64 filepointer; @@ -1114,7 +1114,7 @@ void FilePointerTest( void ) // FileAttributesTest -void verifyFileAttributes( void ) +void verifyFileAttributes() { FileBase::RC rc; DirectoryItem aItem; @@ -1144,7 +1144,7 @@ void verifyFileAttributes( void ) } #ifdef UNX -void FileAttributesTest( void ) +void FileAttributesTest() { FileBase::RC rc; @@ -1249,7 +1249,7 @@ void FileAttributesTest( void ) #endif #ifdef WNT -void FileAttributesTest( void ) +void FileAttributesTest() { FileBase::RC rc; @@ -1299,7 +1299,7 @@ void FileAttributesTest( void ) // FileTimeTest -void FileTimeTest( void ) +void FileTimeTest() { FileBase::RC rc; @@ -1427,7 +1427,7 @@ void FileTimeTest( void ) // DirectoryItemTest -void DirectoryItemTest( void ) +void DirectoryItemTest() { FileBase::RC rc; Directory *pDir; @@ -1743,7 +1743,7 @@ void FileStatusTest( FileStatus *pStatus ) // DirectoryFileStatusTest -void DirectoryFileStatusTest( void ) +void DirectoryFileStatusTest() { FileBase::RC rc; DirectoryItem aItem; @@ -1779,7 +1779,7 @@ void DirectoryFileStatusTest( void ) // FileFileStatusTest -void FileFileStatusTest( void ) +void FileFileStatusTest() { FileBase::RC rc; DirectoryItem aItem; @@ -1815,7 +1815,7 @@ void FileFileStatusTest( void ) // VolumeFileStatusTest -void VolumeFileStatusTest( void ) +void VolumeFileStatusTest() { FileBase::RC rc; DirectoryItem aItem; @@ -1851,7 +1851,7 @@ void VolumeFileStatusTest( void ) // VolumeInfoTest -void VolumeInfoTest( void ) +void VolumeInfoTest() { FileBase::RC rc; @@ -2070,7 +2070,7 @@ void DoAbsolutePathTest(rtl::OUString strDirBase, rtl::OUString strRelative) return; } -void AbsolutePathTest(void) +void AbsolutePathTest() { printf( "--------------------------------------------\n" ); printf( "AbsolutePath-Test\n" ); @@ -2092,7 +2092,7 @@ void AbsolutePathTest(void) // searchPathTest -void SearchPathTest(void) +void SearchPathTest() { FileBase::RC rc; @@ -2283,7 +2283,7 @@ void getCanonicalNameTest(rtl::OUString strPath) return; } -void CanonicalNameTest(void) +void CanonicalNameTest() { printf( "--------------------------------------------\n" ); printf( "CanonicalName-Test\n" ); diff --git a/sal/workben/testpip2.cxx b/sal/workben/testpip2.cxx index ef567867219a..87fcd705ae71 100644 --- a/sal/workben/testpip2.cxx +++ b/sal/workben/testpip2.cxx @@ -38,7 +38,7 @@ void fail( const char * pszText, int retval ) * Teste die Pipe-Implementation in osl */ -int main (void) +int main() { char szBuffer[ 256 ]; rtl_uString* ustrPipeName=0; diff --git a/sal/workben/testproc.cxx b/sal/workben/testproc.cxx index 928ccce60f59..3d2bd79322bf 100644 --- a/sal/workben/testproc.cxx +++ b/sal/workben/testproc.cxx @@ -26,7 +26,7 @@ #define MAIN main #endif -int MAIN (void) +int MAIN() { //oslProcess Process; sal_uInt32 nArgCount; |