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 --- odk/examples/DevelopersGuide/Database/DriverSkeleton/SConnection.hxx | 2 +- odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.hxx | 2 +- odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSet.cxx | 2 +- odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSet.hxx | 2 +- odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.hxx | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) (limited to 'odk') diff --git a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SConnection.hxx b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SConnection.hxx index a1e72aaa85df..dee2dc390181 100644 --- a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SConnection.hxx +++ b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SConnection.hxx @@ -112,7 +112,7 @@ namespace connectivity void closeAllStatements () throw( ::com::sun::star::sdbc::SQLException); // OComponentHelper - virtual void SAL_CALL disposing(void); + virtual void SAL_CALL disposing(); // XInterface virtual void SAL_CALL release() throw(); diff --git a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.hxx b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.hxx index b482d5088aa5..59abf9dd5ca2 100644 --- a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.hxx +++ b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.hxx @@ -66,7 +66,7 @@ namespace connectivity SkeletonDriver(); // OComponentHelper - virtual void SAL_CALL disposing(void); + virtual void SAL_CALL disposing(); // XInterface static ::rtl::OUString getImplementationName_Static( ) throw(::com::sun::star::uno::RuntimeException); static ::com::sun::star::uno::Sequence< ::rtl::OUString > getSupportedServiceNames_Static( ) throw (::com::sun::star::uno::RuntimeException); diff --git a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSet.cxx b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSet.cxx index c4847fe50db7..40582fc07dd3 100644 --- a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSet.cxx +++ b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSet.cxx @@ -88,7 +88,7 @@ OResultSet::~OResultSet() { } -void OResultSet::disposing(void) +void OResultSet::disposing() { OPropertySetHelper::disposing(); diff --git a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSet.hxx b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSet.hxx index edc20b67c639..4f887ebe7f00 100644 --- a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSet.hxx +++ b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SResultSet.hxx @@ -119,7 +119,7 @@ namespace connectivity } // ::cppu::OComponentHelper - virtual void SAL_CALL disposing(void); + virtual void SAL_CALL disposing(); // XInterface virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException); virtual void SAL_CALL acquire() throw(); diff --git a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.hxx b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.hxx index ac63064fbc84..66393c2d6ce1 100644 --- a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.hxx +++ b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.hxx @@ -103,7 +103,7 @@ namespace connectivity using OStatement_BASE::operator ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >; // OComponentHelper - virtual void SAL_CALL disposing(void){OStatement_BASE::disposing();} + virtual void SAL_CALL disposing(){OStatement_BASE::disposing();} // XInterface virtual void SAL_CALL release() throw(); virtual void SAL_CALL acquire() throw(); @@ -144,7 +144,7 @@ namespace connectivity OStatement_BASE2(OConnection* _pConnection ) : OStatement_Base(_pConnection ), OSubComponent((::cppu::OWeakObject*)_pConnection, this){} // OComponentHelper - virtual void SAL_CALL disposing(void); + virtual void SAL_CALL disposing(); // XInterface virtual void SAL_CALL release() throw(); }; -- cgit