summaryrefslogtreecommitdiff
path: root/xmlhelp
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 /xmlhelp
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 'xmlhelp')
-rw-r--r--xmlhelp/source/cxxhelp/inc/tvread.hxx2
-rw-r--r--xmlhelp/source/cxxhelp/provider/bufferedinputstream.cxx12
-rw-r--r--xmlhelp/source/cxxhelp/provider/bufferedinputstream.hxx12
-rw-r--r--xmlhelp/source/cxxhelp/provider/databases.hxx2
-rw-r--r--xmlhelp/source/cxxhelp/provider/db.cxx6
-rw-r--r--xmlhelp/source/cxxhelp/provider/db.hxx8
-rw-r--r--xmlhelp/source/cxxhelp/provider/resultsetbase.cxx4
-rw-r--r--xmlhelp/source/cxxhelp/provider/urlparameter.cxx24
-rw-r--r--xmlhelp/source/treeview/tvfactory.cxx2
9 files changed, 36 insertions, 36 deletions
diff --git a/xmlhelp/source/cxxhelp/inc/tvread.hxx b/xmlhelp/source/cxxhelp/inc/tvread.hxx
index 70449f8a1f65..d72aa9a7ebfb 100644
--- a/xmlhelp/source/cxxhelp/inc/tvread.hxx
+++ b/xmlhelp/source/cxxhelp/inc/tvread.hxx
@@ -284,7 +284,7 @@ namespace treeview {
{
public:
ExtensionIteratorBase( const OUString& aLanguage );
- void init( void );
+ void init();
private:
com::sun::star::uno::Reference< com::sun::star::deployment::XPackage > implGetHelpPackageFromPackage
diff --git a/xmlhelp/source/cxxhelp/provider/bufferedinputstream.cxx b/xmlhelp/source/cxxhelp/provider/bufferedinputstream.cxx
index 206a37581e07..1ed291f9859e 100644
--- a/xmlhelp/source/cxxhelp/provider/bufferedinputstream.cxx
+++ b/xmlhelp/source/cxxhelp/provider/bufferedinputstream.cxx
@@ -104,13 +104,13 @@ Any SAL_CALL BufferedInputStream::queryInterface( const Type& rType ) throw( Run
}
-void SAL_CALL BufferedInputStream::acquire( void ) throw()
+void SAL_CALL BufferedInputStream::acquire() throw()
{
OWeakObject::acquire();
}
-void SAL_CALL BufferedInputStream::release( void ) throw()
+void SAL_CALL BufferedInputStream::release() throw()
{
OWeakObject::release();
}
@@ -172,7 +172,7 @@ void SAL_CALL BufferedInputStream::skipBytes( sal_Int32 nBytesToSkip )
-sal_Int32 SAL_CALL BufferedInputStream::available( void )
+sal_Int32 SAL_CALL BufferedInputStream::available()
throw( NotConnectedException,
IOException,
RuntimeException, std::exception )
@@ -183,7 +183,7 @@ sal_Int32 SAL_CALL BufferedInputStream::available( void )
-void SAL_CALL BufferedInputStream::closeInput( void )
+void SAL_CALL BufferedInputStream::closeInput()
throw( NotConnectedException,
IOException,
RuntimeException, std::exception )
@@ -207,7 +207,7 @@ void SAL_CALL BufferedInputStream::seek( sal_Int64 location )
-sal_Int64 SAL_CALL BufferedInputStream::getPosition( void )
+sal_Int64 SAL_CALL BufferedInputStream::getPosition()
throw( IOException,
RuntimeException, std::exception )
{
@@ -217,7 +217,7 @@ sal_Int64 SAL_CALL BufferedInputStream::getPosition( void )
-sal_Int64 SAL_CALL BufferedInputStream::getLength( void ) throw( IOException,RuntimeException, std::exception )
+sal_Int64 SAL_CALL BufferedInputStream::getLength() throw( IOException,RuntimeException, std::exception )
{
osl::MutexGuard aGuard( m_aMutex );
return m_nBufferSize;
diff --git a/xmlhelp/source/cxxhelp/provider/bufferedinputstream.hxx b/xmlhelp/source/cxxhelp/provider/bufferedinputstream.hxx
index f126fe6645fc..80f4128738ae 100644
--- a/xmlhelp/source/cxxhelp/provider/bufferedinputstream.hxx
+++ b/xmlhelp/source/cxxhelp/provider/bufferedinputstream.hxx
@@ -51,9 +51,9 @@ namespace chelp {
queryInterface( const com::sun::star::uno::Type& rType )
throw( com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
- virtual void SAL_CALL acquire( void ) throw() SAL_OVERRIDE;
+ virtual void SAL_CALL acquire() throw() SAL_OVERRIDE;
- virtual void SAL_CALL release( void ) throw() SAL_OVERRIDE;
+ virtual void SAL_CALL release() throw() SAL_OVERRIDE;
virtual sal_Int32 SAL_CALL readBytes( com::sun::star::uno::Sequence< sal_Int8 >& aData,
@@ -76,12 +76,12 @@ namespace chelp {
com::sun::star::io::IOException,
com::sun::star::uno::RuntimeException, std::exception ) 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, std::exception ) 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, std::exception ) SAL_OVERRIDE;
@@ -91,11 +91,11 @@ namespace chelp {
com::sun::star::io::IOException,
com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
- virtual sal_Int64 SAL_CALL getPosition( void )
+ virtual sal_Int64 SAL_CALL getPosition()
throw( com::sun::star::io::IOException,
com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
- virtual sal_Int64 SAL_CALL getLength( void )
+ virtual sal_Int64 SAL_CALL getLength()
throw( com::sun::star::io::IOException,
com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
};
diff --git a/xmlhelp/source/cxxhelp/provider/databases.hxx b/xmlhelp/source/cxxhelp/provider/databases.hxx
index 78ec84c0ae48..29eeea1b7198 100644
--- a/xmlhelp/source/cxxhelp/provider/databases.hxx
+++ b/xmlhelp/source/cxxhelp/provider/databases.hxx
@@ -346,7 +346,7 @@ namespace chelp {
Databases& rDatabases, const OUString& aInitialModule, const OUString& aLanguage );
ExtensionIteratorBase( Databases& rDatabases, const OUString& aInitialModule,
const OUString& aLanguage );
- void init( void );
+ void init();
private:
com::sun::star::uno::Reference< com::sun::star::deployment::XPackage > implGetHelpPackageFromPackage
diff --git a/xmlhelp/source/cxxhelp/provider/db.cxx b/xmlhelp/source/cxxhelp/provider/db.cxx
index 8a834d0cb7ae..93b0c65614a2 100644
--- a/xmlhelp/source/cxxhelp/provider/db.cxx
+++ b/xmlhelp/source/cxxhelp/provider/db.cxx
@@ -122,7 +122,7 @@ void Hdf::createHashMap( bool bOptimizeForPerformance )
}
}
-void Hdf::releaseHashMap( void )
+void Hdf::releaseHashMap()
{
if( m_pStringToDataMap != NULL )
{
@@ -205,7 +205,7 @@ bool Hdf::getValueForKey( const OString& rKey, HDFData& rValue )
return bSuccess;
}
-bool Hdf::startIteration( void )
+bool Hdf::startIteration()
{
bool bSuccess = false;
@@ -246,7 +246,7 @@ bool Hdf::getNextKeyAndValue( HDFData& rKey, HDFData& rValue )
return bSuccess;
}
-void Hdf::stopIteration( void )
+void Hdf::stopIteration()
{
m_aItData = Sequence<sal_Int8>();
m_pItData = NULL;
diff --git a/xmlhelp/source/cxxhelp/provider/db.hxx b/xmlhelp/source/cxxhelp/provider/db.hxx
index a0ee6b88d001..7bf3fe11c2d9 100644
--- a/xmlhelp/source/cxxhelp/provider/db.hxx
+++ b/xmlhelp/source/cxxhelp/provider/db.hxx
@@ -49,7 +49,7 @@ namespace helpdatafileproxy {
void copyToBuffer( const char* pSrcData, int nSize );
public:
- HDFData( void )
+ HDFData()
: m_nSize( 0 )
, m_pBuffer( NULL )
{}
@@ -101,13 +101,13 @@ namespace helpdatafileproxy {
{ releaseHashMap(); }
void createHashMap( bool bOptimizeForPerformance = false );
- void releaseHashMap( void );
+ void releaseHashMap();
bool getValueForKey( const OString& rKey, HDFData& rValue );
- bool startIteration( void );
+ bool startIteration();
bool getNextKeyAndValue( HDFData& rKey, HDFData& rValue );
- void stopIteration( void );
+ void stopIteration();
};
}
diff --git a/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx b/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx
index 525cc975fc47..0bee13306e1e 100644
--- a/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx
+++ b/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx
@@ -436,14 +436,14 @@ public:
{
}
- void SAL_CALL acquire( void )
+ void SAL_CALL acquire()
throw() SAL_OVERRIDE
{
OWeakObject::acquire();
}
- void SAL_CALL release( void )
+ void SAL_CALL release()
throw() SAL_OVERRIDE
{
OWeakObject::release();
diff --git a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx
index 6c86d789e587..3db0233a09c7 100644
--- a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx
+++ b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx
@@ -332,8 +332,8 @@ public:
virtual ~InputStreamTransformer();
virtual Any SAL_CALL queryInterface( const Type& rType ) throw( RuntimeException, std::exception ) SAL_OVERRIDE;
- virtual void SAL_CALL acquire( void ) throw() SAL_OVERRIDE;
- virtual void SAL_CALL release( void ) throw() SAL_OVERRIDE;
+ virtual void SAL_CALL acquire() throw() SAL_OVERRIDE;
+ virtual void SAL_CALL release() throw() SAL_OVERRIDE;
virtual sal_Int32 SAL_CALL readBytes( Sequence< sal_Int8 >& aData,sal_Int32 nBytesToRead )
throw( NotConnectedException,
@@ -352,11 +352,11 @@ public:
IOException,
RuntimeException, std::exception ) SAL_OVERRIDE;
- virtual sal_Int32 SAL_CALL available( void ) throw( NotConnectedException,
+ virtual sal_Int32 SAL_CALL available() throw( NotConnectedException,
IOException,
RuntimeException, std::exception ) SAL_OVERRIDE;
- virtual void SAL_CALL closeInput( void ) throw( NotConnectedException,
+ virtual void SAL_CALL closeInput() throw( NotConnectedException,
IOException,
RuntimeException, std::exception ) SAL_OVERRIDE;
@@ -364,9 +364,9 @@ public:
IOException,
RuntimeException, std::exception ) SAL_OVERRIDE;
- virtual sal_Int64 SAL_CALL getPosition( void ) throw( IOException,RuntimeException, std::exception ) SAL_OVERRIDE;
+ virtual sal_Int64 SAL_CALL getPosition() throw( IOException,RuntimeException, std::exception ) SAL_OVERRIDE;
- virtual sal_Int64 SAL_CALL getLength( void ) throw( IOException,RuntimeException, std::exception ) SAL_OVERRIDE;
+ virtual sal_Int64 SAL_CALL getLength() throw( IOException,RuntimeException, std::exception ) SAL_OVERRIDE;
void addToBuffer( const char* buffer,int len );
@@ -1026,14 +1026,14 @@ Any SAL_CALL InputStreamTransformer::queryInterface( const Type& rType ) throw(
-void SAL_CALL InputStreamTransformer::acquire( void ) throw()
+void SAL_CALL InputStreamTransformer::acquire() throw()
{
OWeakObject::acquire();
}
-void SAL_CALL InputStreamTransformer::release( void ) throw()
+void SAL_CALL InputStreamTransformer::release() throw()
{
OWeakObject::release();
}
@@ -1086,7 +1086,7 @@ void SAL_CALL InputStreamTransformer::skipBytes( sal_Int32 nBytesToSkip ) throw(
-sal_Int32 SAL_CALL InputStreamTransformer::available( void ) throw( NotConnectedException,
+sal_Int32 SAL_CALL InputStreamTransformer::available() throw( NotConnectedException,
IOException,
RuntimeException, std::exception )
{
@@ -1096,7 +1096,7 @@ sal_Int32 SAL_CALL InputStreamTransformer::available( void ) throw( NotConnected
-void SAL_CALL InputStreamTransformer::closeInput( void ) throw( NotConnectedException,
+void SAL_CALL InputStreamTransformer::closeInput() throw( NotConnectedException,
IOException,
RuntimeException, std::exception )
{
@@ -1120,7 +1120,7 @@ void SAL_CALL InputStreamTransformer::seek( sal_Int64 location ) throw( IllegalA
-sal_Int64 SAL_CALL InputStreamTransformer::getPosition( void ) throw( IOException,
+sal_Int64 SAL_CALL InputStreamTransformer::getPosition() throw( IOException,
RuntimeException, std::exception )
{
osl::MutexGuard aGuard( m_aMutex );
@@ -1129,7 +1129,7 @@ sal_Int64 SAL_CALL InputStreamTransformer::getPosition( void ) throw( IOExceptio
-sal_Int64 SAL_CALL InputStreamTransformer::getLength( void ) throw( IOException,RuntimeException, std::exception )
+sal_Int64 SAL_CALL InputStreamTransformer::getLength() throw( IOException,RuntimeException, std::exception )
{
osl::MutexGuard aGuard( m_aMutex );
diff --git a/xmlhelp/source/treeview/tvfactory.cxx b/xmlhelp/source/treeview/tvfactory.cxx
index a101b174c849..e76fcfeb4a25 100644
--- a/xmlhelp/source/treeview/tvfactory.cxx
+++ b/xmlhelp/source/treeview/tvfactory.cxx
@@ -57,7 +57,7 @@ sal_Bool SAL_CALL TVFactory::supportsService( const OUString& ServiceName )
}
Sequence< OUString > SAL_CALL
-TVFactory::getSupportedServiceNames( void )
+TVFactory::getSupportedServiceNames()
throw( RuntimeException, std::exception )
{
return TVFactory::getSupportedServiceNames_static();