From 71b809959bb8f775d83dc52628448bb8b8322b28 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 14 Apr 2015 12:44:47 +0200 Subject: 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 --- extensions/workben/pythonautotest.cxx | 4 +-- extensions/workben/testpgp.cxx | 62 +++++++++++++++++------------------ 2 files changed, 33 insertions(+), 33 deletions(-) (limited to 'extensions/workben') diff --git a/extensions/workben/pythonautotest.cxx b/extensions/workben/pythonautotest.cxx index fb6b66ba3fda..a7ee631e8a75 100644 --- a/extensions/workben/pythonautotest.cxx +++ b/extensions/workben/pythonautotest.cxx @@ -58,7 +58,7 @@ public: void* getImplementation(Reflection *p) { return OWeakObject::getImplementation(p); } public: - XIntrospectionAccessRef getIntrospection(void) const THROWS( (UsrSystemException) ) + XIntrospectionAccessRef getIntrospection() const THROWS( (UsrSystemException) ) { return XIntrospectionAccessRef(); } UsrAny invoke( const UString& FunctionName, @@ -348,7 +348,7 @@ class PythonCodeLibrary : return FALSE; } - virtual Sequence< UString > getModuleNames(void) THROWS( (UsrSystemException) ) + virtual Sequence< UString > getModuleNames() THROWS( (UsrSystemException) ) { return Sequence (); } diff --git a/extensions/workben/testpgp.cxx b/extensions/workben/testpgp.cxx index b9fe1f877566..1d8ea709190d 100644 --- a/extensions/workben/testpgp.cxx +++ b/extensions/workben/testpgp.cxx @@ -65,7 +65,7 @@ class DataSource_Impl : public: DataSource_Impl (int fd = 0); - virtual ~DataSource_Impl (void); + virtual ~DataSource_Impl(); void setBuffer (const Sequence &rBuffer); @@ -74,9 +74,9 @@ public: virtual sal_Bool SAL_CALL queryInterface ( const Uik &rUik, Any &rIfc) throw(RuntimeException); - virtual void SAL_CALL acquire (void) throw(RuntimeException); + virtual void SAL_CALL acquire() throw(RuntimeException); - virtual void SAL_CALL release (void) throw(RuntimeException); + virtual void SAL_CALL release() throw(RuntimeException); /** XInputStream. */ @@ -97,10 +97,10 @@ public: BufferSizeExceededException, IOException); - virtual sal_Int32 SAL_CALL available (void) + virtual sal_Int32 SAL_CALL available() throw (NotConnectedException, IOException); - virtual void SAL_CALL closeInput (void) + virtual void SAL_CALL closeInput() throw (NotConnectedException, IOException); }; @@ -116,18 +116,18 @@ class DataSink_Impl : Sequence m_buffer; public: - DataSink_Impl (void); - virtual ~DataSink_Impl (void); + DataSink_Impl(); + virtual ~DataSink_Impl(); - const Sequence& getBuffer (void) const { return m_buffer; } + const Sequence& getBuffer() const { return m_buffer; } /** XInterface. */ virtual sal_Bool SAL_CALL queryInterface ( const Uik &rUik, Any &rIfc) throw(RuntimeException); - virtual void SAL_CALL acquire (void) throw(RuntimeException); - virtual void SAL_CALL release (void) throw(RuntimeException); + virtual void SAL_CALL acquire() throw(RuntimeException); + virtual void SAL_CALL release() throw(RuntimeException); /** XOutputStream. */ @@ -137,12 +137,12 @@ public: BufferSizeExceededException, IOException); - virtual void SAL_CALL flush (void) + virtual void SAL_CALL flush() throw (NotConnectedException, BufferSizeExceededException, IOException); - virtual void SAL_CALL closeOutput (void) + virtual void SAL_CALL closeOutput() throw (NotConnectedException, BufferSizeExceededException, IOException); @@ -158,17 +158,17 @@ class DecoderListener_Impl : public XPGPDecoderListener { public: - DecoderListener_Impl (void); - virtual ~DecoderListener_Impl (void); + DecoderListener_Impl(); + virtual ~DecoderListener_Impl(); /** XInterface. */ virtual sal_Bool SAL_CALL queryInterface ( const Uik &rUik, Any &rIfc) throw(RuntimeException); - virtual void SAL_CALL acquire (void) throw(RuntimeException); + virtual void SAL_CALL acquire() throw(RuntimeException); - virtual void SAL_CALL release (void) throw(RuntimeException); + virtual void SAL_CALL release() throw(RuntimeException); /** XEventListener. */ @@ -196,7 +196,7 @@ DataSource_Impl::DataSource_Impl (int fd) /* * ~DataSource_Impl. */ -DataSource_Impl::~DataSource_Impl (void) +DataSource_Impl::~DataSource_Impl() { } @@ -245,7 +245,7 @@ sal_Bool SAL_CALL DataSource_Impl::queryInterface ( /* * XInterface: acquire. */ -void SAL_CALL DataSource_Impl::acquire (void) throw(RuntimeException) +void SAL_CALL DataSource_Impl::acquire() throw(RuntimeException) { OWeakObject::acquire(); } @@ -253,7 +253,7 @@ void SAL_CALL DataSource_Impl::acquire (void) throw(RuntimeException) /* * XInterface: release. */ -void SAL_CALL DataSource_Impl::release (void) throw(RuntimeException) +void SAL_CALL DataSource_Impl::release() throw(RuntimeException) { OWeakObject::release(); } @@ -305,7 +305,7 @@ void SAL_CALL DataSource_Impl::skipBytes (sal_Int32 nBytesToSkip) /* * XInputStream: available. */ -sal_Int32 SAL_CALL DataSource_Impl::available (void) +sal_Int32 SAL_CALL DataSource_Impl::available() throw (NotConnectedException, IOException) { sal_Int32 k = m_buffer.getLength() - m_position; @@ -315,7 +315,7 @@ sal_Int32 SAL_CALL DataSource_Impl::available (void) /* * XInputStream: closeInput. */ -void SAL_CALL DataSource_Impl::closeInput (void) +void SAL_CALL DataSource_Impl::closeInput() throw (NotConnectedException, IOException) { } @@ -328,14 +328,14 @@ void SAL_CALL DataSource_Impl::closeInput (void) /* * DataSink_Impl. */ -DataSink_Impl::DataSink_Impl (void) +DataSink_Impl::DataSink_Impl() { } /* * ~DataSink_Impl. */ -DataSink_Impl::~DataSink_Impl (void) +DataSink_Impl::~DataSink_Impl() { } @@ -356,7 +356,7 @@ sal_Bool SAL_CALL DataSink_Impl::queryInterface ( /* * XInterface: acquire. */ -void SAL_CALL DataSink_Impl::acquire (void) throw(RuntimeException) +void SAL_CALL DataSink_Impl::acquire() throw(RuntimeException) { OWeakObject::acquire(); } @@ -364,7 +364,7 @@ void SAL_CALL DataSink_Impl::acquire (void) throw(RuntimeException) /* * XInterface: release. */ -void SAL_CALL DataSink_Impl::release (void) throw(RuntimeException) +void SAL_CALL DataSink_Impl::release() throw(RuntimeException) { OWeakObject::release(); } @@ -390,7 +390,7 @@ void SAL_CALL DataSink_Impl::writeBytes (const Sequence &rBuffer) /* * XOutputStream: flush. */ -void SAL_CALL DataSink_Impl::flush (void) +void SAL_CALL DataSink_Impl::flush() throw (NotConnectedException, BufferSizeExceededException, IOException) { if (m_buffer.getLength()) @@ -413,7 +413,7 @@ void SAL_CALL DataSink_Impl::flush (void) /* * XOutputStream: closeOutput. */ -void SAL_CALL DataSink_Impl::closeOutput (void) +void SAL_CALL DataSink_Impl::closeOutput() throw (NotConnectedException, BufferSizeExceededException, IOException) { flush(); @@ -427,14 +427,14 @@ void SAL_CALL DataSink_Impl::closeOutput (void) /* * DecoderListener_Impl. */ -DecoderListener_Impl::DecoderListener_Impl (void) +DecoderListener_Impl::DecoderListener_Impl() { } /* * ~DecoderListener_Impl. */ -DecoderListener_Impl::~DecoderListener_Impl (void) +DecoderListener_Impl::~DecoderListener_Impl() { } @@ -456,7 +456,7 @@ sal_Bool SAL_CALL DecoderListener_Impl::queryInterface ( /* * XInterface: acquire. */ -void SAL_CALL DecoderListener_Impl::acquire (void) throw(RuntimeException) +void SAL_CALL DecoderListener_Impl::acquire() throw(RuntimeException) { OWeakObject::acquire(); } @@ -464,7 +464,7 @@ void SAL_CALL DecoderListener_Impl::acquire (void) throw(RuntimeException) /* * XInterface: release. */ -void SAL_CALL DecoderListener_Impl::release (void) throw(RuntimeException) +void SAL_CALL DecoderListener_Impl::release() throw(RuntimeException) { OWeakObject::release(); } -- cgit