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 /dtrans | |
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 'dtrans')
-rw-r--r-- | dtrans/source/cnttype/mcnttype.cxx | 12 | ||||
-rw-r--r-- | dtrans/source/cnttype/mcnttype.hxx | 12 | ||||
-rw-r--r-- | dtrans/source/win32/clipb/WinClipbImpl.cxx | 2 | ||||
-rw-r--r-- | dtrans/source/win32/clipb/WinClipbImpl.hxx | 2 | ||||
-rw-r--r-- | dtrans/source/win32/dnd/idroptarget.cxx | 6 | ||||
-rw-r--r-- | dtrans/source/win32/dnd/source.cxx | 4 | ||||
-rw-r--r-- | dtrans/source/win32/dnd/target.cxx | 2 |
7 files changed, 20 insertions, 20 deletions
diff --git a/dtrans/source/cnttype/mcnttype.cxx b/dtrans/source/cnttype/mcnttype.cxx index 74022478ec9c..e9c2915dbe20 100644 --- a/dtrans/source/cnttype/mcnttype.cxx +++ b/dtrans/source/cnttype/mcnttype.cxx @@ -101,7 +101,7 @@ void SAL_CALL CMimeContentType::init( const OUString& aCntType ) throw( IllegalA type(); } -void SAL_CALL CMimeContentType::getSym( void ) +void SAL_CALL CMimeContentType::getSym() { if ( m_nPos < m_ContentType.getLength( ) ) { @@ -121,13 +121,13 @@ void SAL_CALL CMimeContentType::acceptSym( const OUString& pSymTlb ) getSym(); } -void SAL_CALL CMimeContentType::skipSpaces( void ) +void SAL_CALL CMimeContentType::skipSpaces() { while (m_nxtSym == SPACE) getSym( ); } -void SAL_CALL CMimeContentType::type( void ) +void SAL_CALL CMimeContentType::type() { skipSpaces( ); @@ -156,7 +156,7 @@ void SAL_CALL CMimeContentType::type( void ) subtype( ); } -void SAL_CALL CMimeContentType::subtype( void ) +void SAL_CALL CMimeContentType::subtype() { skipSpaces( ); @@ -182,7 +182,7 @@ void SAL_CALL CMimeContentType::subtype( void ) trailer(); } -void SAL_CALL CMimeContentType::trailer( void ) +void SAL_CALL CMimeContentType::trailer() { OUString sToken(TOKEN); while( !m_nxtSym.isEmpty( ) ) @@ -325,7 +325,7 @@ OUString SAL_CALL CMimeContentType::nonquotedPValue( ) return pvalue; } -void SAL_CALL CMimeContentType::comment( void ) +void SAL_CALL CMimeContentType::comment() { while ( !m_nxtSym.isEmpty( ) ) { diff --git a/dtrans/source/cnttype/mcnttype.hxx b/dtrans/source/cnttype/mcnttype.hxx index b7663021a4fe..e44e12261b21 100644 --- a/dtrans/source/cnttype/mcnttype.hxx +++ b/dtrans/source/cnttype/mcnttype.hxx @@ -51,17 +51,17 @@ public: private: void SAL_CALL init( const OUString& aCntType ) throw( com::sun::star::lang::IllegalArgumentException ); - void SAL_CALL getSym( void ); + void SAL_CALL getSym(); void SAL_CALL acceptSym( const OUString& pSymTlb ); - void SAL_CALL skipSpaces( void ); - void SAL_CALL type( void ); - void SAL_CALL subtype( void ); - void SAL_CALL trailer( void ); + void SAL_CALL skipSpaces(); + void SAL_CALL type(); + void SAL_CALL subtype(); + void SAL_CALL trailer(); OUString SAL_CALL pName( ); OUString SAL_CALL pValue( ); OUString SAL_CALL quotedPValue( ); OUString SAL_CALL nonquotedPValue( ); - void SAL_CALL comment( void ); + void SAL_CALL comment(); static bool SAL_CALL isInRange( const OUString& aChr, const OUString& aRange ); private: diff --git a/dtrans/source/win32/clipb/WinClipbImpl.cxx b/dtrans/source/win32/clipb/WinClipbImpl.cxx index a529b812ed76..817d7f2f7a20 100644 --- a/dtrans/source/win32/clipb/WinClipbImpl.cxx +++ b/dtrans/source/win32/clipb/WinClipbImpl.cxx @@ -181,7 +181,7 @@ void SAL_CALL CWinClipbImpl::dispose() throw( RuntimeException ) OSL_ENSURE( !m_pCurrentClipContent, "Clipboard was not flushed before shutdown!" ); } -void WINAPI CWinClipbImpl::onClipboardContentChanged( void ) +void WINAPI CWinClipbImpl::onClipboardContentChanged() { MutexGuard aGuard( s_aMutex ); diff --git a/dtrans/source/win32/clipb/WinClipbImpl.hxx b/dtrans/source/win32/clipb/WinClipbImpl.hxx index e248dad499b4..a5da94cca792 100644 --- a/dtrans/source/win32/clipb/WinClipbImpl.hxx +++ b/dtrans/source/win32/clipb/WinClipbImpl.hxx @@ -76,7 +76,7 @@ protected: void SAL_CALL registerClipboardViewer( ); void SAL_CALL unregisterClipboardViewer( ); - static void WINAPI onClipboardContentChanged( void ); + static void WINAPI onClipboardContentChanged(); private: void SAL_CALL onReleaseDataObject( CXNotifyingDataObject* theCaller ); diff --git a/dtrans/source/win32/dnd/idroptarget.cxx b/dtrans/source/win32/dnd/idroptarget.cxx index 1510a5420965..0edc50ab4b04 100644 --- a/dtrans/source/win32/dnd/idroptarget.cxx +++ b/dtrans/source/win32/dnd/idroptarget.cxx @@ -57,12 +57,12 @@ HRESULT STDMETHODCALLTYPE IDropTargetImpl::QueryInterface( REFIID riid, void ** } -ULONG STDMETHODCALLTYPE IDropTargetImpl::AddRef( void) +ULONG STDMETHODCALLTYPE IDropTargetImpl::AddRef() { return InterlockedIncrement( &m_nRefCount); } -ULONG STDMETHODCALLTYPE IDropTargetImpl::Release( void) +ULONG STDMETHODCALLTYPE IDropTargetImpl::Release() { LONG count= InterlockedDecrement( &m_nRefCount); if( m_nRefCount == 0 ) @@ -86,7 +86,7 @@ STDMETHODIMP IDropTargetImpl::DragOver( DWORD grfKeyState, return m_rDropTarget.DragOver( grfKeyState, pt, pdwEffect); } -STDMETHODIMP IDropTargetImpl::DragLeave( void) +STDMETHODIMP IDropTargetImpl::DragLeave() { return m_rDropTarget.DragLeave(); } diff --git a/dtrans/source/win32/dnd/source.cxx b/dtrans/source/win32/dnd/source.cxx index 2728aed7cc11..b7a1aa0551ed 100644 --- a/dtrans/source/win32/dnd/source.cxx +++ b/dtrans/source/win32/dnd/source.cxx @@ -218,13 +218,13 @@ HRESULT STDMETHODCALLTYPE DragSource::QueryInterface( REFIID riid, void **ppvOb } -ULONG STDMETHODCALLTYPE DragSource::AddRef( void) +ULONG STDMETHODCALLTYPE DragSource::AddRef() { acquire(); return (ULONG) m_refCount; } -ULONG STDMETHODCALLTYPE DragSource::Release( void) +ULONG STDMETHODCALLTYPE DragSource::Release() { ULONG ref= m_refCount; release(); diff --git a/dtrans/source/win32/dnd/target.cxx b/dtrans/source/win32/dnd/target.cxx index 8c8e963b321a..849b284f50c4 100644 --- a/dtrans/source/win32/dnd/target.cxx +++ b/dtrans/source/win32/dnd/target.cxx @@ -410,7 +410,7 @@ HRESULT DropTarget::DragOver( DWORD grfKeyState, return S_OK; } -HRESULT DropTarget::DragLeave( void) +HRESULT DropTarget::DragLeave() { #if defined DBG_CONSOLE_OUT printf("\nDropTarget::DragLeave"); |