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 /ucb/source/ucp/gvfs | |
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 'ucb/source/ucp/gvfs')
-rw-r--r-- | ucb/source/ucp/gvfs/gvfs_stream.cxx | 12 | ||||
-rw-r--r-- | ucb/source/ucp/gvfs/gvfs_stream.hxx | 16 |
2 files changed, 14 insertions, 14 deletions
diff --git a/ucb/source/ucp/gvfs/gvfs_stream.cxx b/ucb/source/ucp/gvfs/gvfs_stream.cxx index db2fc812e586..e453b98f1ed0 100644 --- a/ucb/source/ucp/gvfs/gvfs_stream.cxx +++ b/ucb/source/ucp/gvfs/gvfs_stream.cxx @@ -40,7 +40,7 @@ Stream::Stream( GnomeVFSHandle *handle, gnome_vfs_file_info_copy (&m_info, aInfo); } -Stream::~Stream( void ) +Stream::~Stream() { if (m_handle) { gnome_vfs_close (m_handle); @@ -173,7 +173,7 @@ sal_Int32 SAL_CALL Stream::available( ) return 0; // cf. filinpstr.cxx } -void SAL_CALL Stream::closeInput( void ) +void SAL_CALL Stream::closeInput() throw( NotConnectedException, IOException, RuntimeException ) @@ -241,7 +241,7 @@ sal_Int64 SAL_CALL Stream::getLength() // XTruncate -void SAL_CALL Stream::truncate( void ) +void SAL_CALL Stream::truncate() throw( com::sun::star::io::IOException, com::sun::star::uno::RuntimeException ) { @@ -281,13 +281,13 @@ void SAL_CALL Stream::writeBytes( const com::sun::star::uno::Sequence< sal_Int8 } } -void SAL_CALL Stream::flush( void ) +void SAL_CALL Stream::flush() throw( NotConnectedException, BufferSizeExceededException, IOException, RuntimeException ) { } -void SAL_CALL Stream::closeOutput( void ) +void SAL_CALL Stream::closeOutput() throw( com::sun::star::io::NotConnectedException, com::sun::star::io::IOException, com::sun::star::uno::RuntimeException ) @@ -303,7 +303,7 @@ void SAL_CALL Stream::closeOutput( void ) // Misc. -void Stream::closeStream( void ) +void Stream::closeStream() throw( ::com::sun::star::io::NotConnectedException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException ) diff --git a/ucb/source/ucp/gvfs/gvfs_stream.hxx b/ucb/source/ucp/gvfs/gvfs_stream.hxx index e58143471132..aaf249dc45ea 100644 --- a/ucb/source/ucp/gvfs/gvfs_stream.hxx +++ b/ucb/source/ucp/gvfs/gvfs_stream.hxx @@ -54,7 +54,7 @@ private: ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException ); - void closeStream( void ) + void closeStream() throw( ::com::sun::star::io::NotConnectedException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException ); @@ -67,10 +67,10 @@ public: // XInterface virtual com::sun::star::uno::Any SAL_CALL queryInterface(const ::com::sun::star::uno::Type & type ) throw( ::com::sun::star::uno::RuntimeException ) SAL_OVERRIDE; - virtual void SAL_CALL acquire( void ) + virtual void SAL_CALL acquire() throw () SAL_OVERRIDE { OWeakObject::acquire(); } - virtual void SAL_CALL release( void ) + virtual void SAL_CALL release() throw() SAL_OVERRIDE { OWeakObject::release(); } @@ -104,12 +104,12 @@ public: ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException ) SAL_OVERRIDE; - virtual sal_Int32 SAL_CALL available( void ) + virtual sal_Int32 SAL_CALL available() throw( ::com::sun::star::io::NotConnectedException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException ) SAL_OVERRIDE; - virtual void SAL_CALL closeInput( void ) + virtual void SAL_CALL closeInput() throw( ::com::sun::star::io::NotConnectedException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException ) SAL_OVERRIDE; @@ -135,20 +135,20 @@ public: com::sun::star::io::IOException, com::sun::star::uno::RuntimeException) SAL_OVERRIDE; - virtual void SAL_CALL flush( void ) + virtual void SAL_CALL flush() throw( com::sun::star::io::NotConnectedException, com::sun::star::io::BufferSizeExceededException, com::sun::star::io::IOException, com::sun::star::uno::RuntimeException) SAL_OVERRIDE; - virtual void SAL_CALL closeOutput( void ) + virtual void SAL_CALL closeOutput() throw( com::sun::star::io::NotConnectedException, com::sun::star::io::IOException, com::sun::star::uno::RuntimeException ) SAL_OVERRIDE; // XTruncate - virtual void SAL_CALL truncate( void ) + virtual void SAL_CALL truncate() throw( com::sun::star::io::IOException, com::sun::star::uno::RuntimeException ) SAL_OVERRIDE; }; |