summaryrefslogtreecommitdiff
path: root/embeddedobj
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-14 12:44:47 +0200
committerNoel Grandin <noel@peralex.com>2015-04-15 11:47:12 +0200
commit71b809959bb8f775d83dc52628448bb8b8322b28 (patch)
treef9aa4308050eb7d55611068602c0cf0e3c1b3690 /embeddedobj
parent135907f2061550624ee1859745d94eee01849070 (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 'embeddedobj')
-rw-r--r--embeddedobj/source/msole/advisesink.cxx4
-rw-r--r--embeddedobj/source/msole/advisesink.hxx10
-rw-r--r--embeddedobj/source/msole/olewrapclient.cxx4
-rw-r--r--embeddedobj/source/msole/olewrapclient.hxx12
4 files changed, 15 insertions, 15 deletions
diff --git a/embeddedobj/source/msole/advisesink.cxx b/embeddedobj/source/msole/advisesink.cxx
index c8272846b84b..10a5fee37d34 100644
--- a/embeddedobj/source/msole/advisesink.cxx
+++ b/embeddedobj/source/msole/advisesink.cxx
@@ -98,14 +98,14 @@ STDMETHODIMP_(void) OleWrapperAdviseSink::OnRename(LPMONIKER)
// handled by default inprocess handler
}
-STDMETHODIMP_(void) OleWrapperAdviseSink::OnSave(void)
+STDMETHODIMP_(void) OleWrapperAdviseSink::OnSave()
{
// TODO: ???
// The object knows about document saving already since it contolls it as ClienSite
// other interested listeners must be registered for the object
}
-STDMETHODIMP_(void) OleWrapperAdviseSink::OnClose(void)
+STDMETHODIMP_(void) OleWrapperAdviseSink::OnClose()
{
::rtl::Reference< OleComponent > xLockComponent;
diff --git a/embeddedobj/source/msole/advisesink.hxx b/embeddedobj/source/msole/advisesink.hxx
index d8d0da7b372f..bfd5f19b7921 100644
--- a/embeddedobj/source/msole/advisesink.hxx
+++ b/embeddedobj/source/msole/advisesink.hxx
@@ -34,19 +34,19 @@ protected:
public:
OleWrapperAdviseSink( OleComponent* pOleComp );
- OleWrapperAdviseSink(void);
+ OleWrapperAdviseSink();
virtual ~OleWrapperAdviseSink();
void disconnectOleComponent();
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();
};
#endif
diff --git a/embeddedobj/source/msole/olewrapclient.cxx b/embeddedobj/source/msole/olewrapclient.cxx
index 7f14a2629eaa..7c8755cdc05a 100644
--- a/embeddedobj/source/msole/olewrapclient.cxx
+++ b/embeddedobj/source/msole/olewrapclient.cxx
@@ -112,7 +112,7 @@ STDMETHODIMP OleWrapperClientSite::GetContainer( LPOLECONTAINER* ppContainer )
return E_NOTIMPL;
}
-STDMETHODIMP OleWrapperClientSite::ShowObject(void)
+STDMETHODIMP OleWrapperClientSite::ShowObject()
{
return S_OK;
}
@@ -140,7 +140,7 @@ STDMETHODIMP OleWrapperClientSite::OnShowWindow( BOOL bShow )
return S_OK;
}
-STDMETHODIMP OleWrapperClientSite::RequestNewObjectLayout(void)
+STDMETHODIMP OleWrapperClientSite::RequestNewObjectLayout()
{
return E_NOTIMPL;
}
diff --git a/embeddedobj/source/msole/olewrapclient.hxx b/embeddedobj/source/msole/olewrapclient.hxx
index 52ebca2d9e1a..f5cc8dcc34c5 100644
--- a/embeddedobj/source/msole/olewrapclient.hxx
+++ b/embeddedobj/source/msole/olewrapclient.hxx
@@ -33,20 +33,20 @@ class OleWrapperClientSite : public IOleClientSite
public:
OleWrapperClientSite( OleComponent* pOleComp );
- virtual ~OleWrapperClientSite(void);
+ virtual ~OleWrapperClientSite();
void disconnectOleComponent();
STDMETHODIMP QueryInterface(REFIID, void**);
- STDMETHODIMP_(ULONG) AddRef(void);
- STDMETHODIMP_(ULONG) Release(void);
+ STDMETHODIMP_(ULONG) AddRef();
+ STDMETHODIMP_(ULONG) Release();
- STDMETHODIMP SaveObject(void);
+ STDMETHODIMP SaveObject();
STDMETHODIMP GetMoniker(DWORD, DWORD, LPMONIKER *);
STDMETHODIMP GetContainer(LPOLECONTAINER *);
- STDMETHODIMP ShowObject(void);
+ STDMETHODIMP ShowObject();
STDMETHODIMP OnShowWindow(BOOL);
- STDMETHODIMP RequestNewObjectLayout(void);
+ STDMETHODIMP RequestNewObjectLayout();
};
#endif