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 /embedserv/source/inprocserv | |
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 'embedserv/source/inprocserv')
-rw-r--r-- | embedserv/source/inprocserv/advisesink.cxx | 4 | ||||
-rw-r--r-- | embedserv/source/inprocserv/advisesink.hxx | 8 | ||||
-rw-r--r-- | embedserv/source/inprocserv/dllentry.cxx | 4 | ||||
-rw-r--r-- | embedserv/source/inprocserv/inprocembobj.cxx | 6 |
4 files changed, 11 insertions, 11 deletions
diff --git a/embedserv/source/inprocserv/advisesink.cxx b/embedserv/source/inprocserv/advisesink.cxx index bbd7e5860c72..6d44b9f3caf2 100644 --- a/embedserv/source/inprocserv/advisesink.cxx +++ b/embedserv/source/inprocserv/advisesink.cxx @@ -153,7 +153,7 @@ STDMETHODIMP_(void) OleWrapperAdviseSink::OnRename( LPMONIKER pMoniker ) } } -STDMETHODIMP_(void) OleWrapperAdviseSink::OnSave(void) +STDMETHODIMP_(void) OleWrapperAdviseSink::OnSave() { if ( m_pListener ) { @@ -161,7 +161,7 @@ STDMETHODIMP_(void) OleWrapperAdviseSink::OnSave(void) } } -STDMETHODIMP_(void) OleWrapperAdviseSink::OnClose(void) +STDMETHODIMP_(void) OleWrapperAdviseSink::OnClose() { if ( m_pListener ) { diff --git a/embedserv/source/inprocserv/advisesink.hxx b/embedserv/source/inprocserv/advisesink.hxx index 2dc6d7739868..a30653aa0a84 100644 --- a/embedserv/source/inprocserv/advisesink.hxx +++ b/embedserv/source/inprocserv/advisesink.hxx @@ -76,14 +76,14 @@ public: BOOL IsClosed() { return m_bClosed; } STDMETHODIMP QueryInterface(REFIID, void**); - STDMETHODIMP_(ULONG) AddRef(void); - STDMETHODIMP_(ULONG) Release(void); + STDMETHODIMP_(ULONG) AddRef(); + STDMETHODIMP_(ULONG) Release(); STDMETHODIMP_(void) OnDataChange(LPFORMATETC, LPSTGMEDIUM); STDMETHODIMP_(void) OnViewChange(DWORD, LONG); STDMETHODIMP_(void) OnRename(LPMONIKER); - STDMETHODIMP_(void) OnSave(void); - STDMETHODIMP_(void) OnClose(void); + STDMETHODIMP_(void) OnSave(); + STDMETHODIMP_(void) OnClose(); }; }; // namespace advisesink diff --git a/embedserv/source/inprocserv/dllentry.cxx b/embedserv/source/inprocserv/dllentry.cxx index 545002aefe3b..e8b955d61aa7 100644 --- a/embedserv/source/inprocserv/dllentry.cxx +++ b/embedserv/source/inprocserv/dllentry.cxx @@ -205,7 +205,7 @@ extern "C" STDAPI INPROC_DLLPUBLIC DllCanUnloadNow() } -STDAPI INPROC_DLLPUBLIC DllRegisterServer( void ) +STDAPI INPROC_DLLPUBLIC DllRegisterServer() { HMODULE aCurModule = GetModuleHandleA( "inprocserv.dll" ); if( aCurModule ) @@ -223,7 +223,7 @@ STDAPI INPROC_DLLPUBLIC DllRegisterServer( void ) } -STDAPI INPROC_DLLPUBLIC DllUnregisterServer( void ) +STDAPI INPROC_DLLPUBLIC DllUnregisterServer() { return WriteLibraryToRegistry( "ole32.dll", 10 ); } diff --git a/embedserv/source/inprocserv/inprocembobj.cxx b/embedserv/source/inprocserv/inprocembobj.cxx index 04442f795cd6..912efc4dc160 100644 --- a/embedserv/source/inprocserv/inprocembobj.cxx +++ b/embedserv/source/inprocserv/inprocembobj.cxx @@ -1542,7 +1542,7 @@ STDMETHODIMP InprocEmbedDocument_Impl::ContextSensitiveHelp( BOOL fEnterMode ) // IOleInPlaceObject methods -STDMETHODIMP InprocEmbedDocument_Impl::InPlaceDeactivate( void ) +STDMETHODIMP InprocEmbedDocument_Impl::InPlaceDeactivate() { if ( CheckDefHandler() ) { @@ -1558,7 +1558,7 @@ STDMETHODIMP InprocEmbedDocument_Impl::InPlaceDeactivate( void ) } -STDMETHODIMP InprocEmbedDocument_Impl::UIDeactivate( void ) +STDMETHODIMP InprocEmbedDocument_Impl::UIDeactivate() { if ( CheckDefHandler() ) { @@ -1590,7 +1590,7 @@ STDMETHODIMP InprocEmbedDocument_Impl::SetObjectRects( LPCRECT lprcPosRect, LPCR } -STDMETHODIMP InprocEmbedDocument_Impl::ReactivateAndUndo( void ) +STDMETHODIMP InprocEmbedDocument_Impl::ReactivateAndUndo() { if ( CheckDefHandler() ) { |