summaryrefslogtreecommitdiff
path: root/stoc/test
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 /stoc/test
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 'stoc/test')
-rw-r--r--stoc/test/testcorefl.cxx2
-rw-r--r--stoc/test/testintrosp.cxx8
-rw-r--r--stoc/test/testsmgr_cpnt.cxx8
3 files changed, 9 insertions, 9 deletions
diff --git a/stoc/test/testcorefl.cxx b/stoc/test/testcorefl.cxx
index aa3719abbc85..63ab8ca308eb 100644
--- a/stoc/test/testcorefl.cxx
+++ b/stoc/test/testcorefl.cxx
@@ -61,7 +61,7 @@ class OInterfaceA : public WeakImplHelper1< XInterfaceA >
{
public:
- virtual void SAL_CALL methodA(void) throw (RuntimeException)
+ virtual void SAL_CALL methodA() throw (RuntimeException)
{}
virtual void SAL_CALL methodB(sal_Int16 /*aShort*/) throw (RuntimeException)
diff --git a/stoc/test/testintrosp.cxx b/stoc/test/testintrosp.cxx
index b3908eb7e771..9e89f6987215 100644
--- a/stoc/test/testintrosp.cxx
+++ b/stoc/test/testintrosp.cxx
@@ -196,7 +196,7 @@ public:
};
-Sequence< Property > ImplPropertySetInfo::getProperties(void)
+Sequence< Property > ImplPropertySetInfo::getProperties()
throw( RuntimeException )
{
static Sequence<Property> * pSeq = NULL;
@@ -300,7 +300,7 @@ class ImplIntroTest : public ImplIntroTestHelper
Reference< XVetoableChangeListener > aVetoPropChangeListener;
OUString aVetoPropChangeListenerStr;
- void Init( void );
+ void Init();
public:
ImplIntroTest( const Reference< XMultiServiceFactory > & xMgr )
@@ -420,7 +420,7 @@ public:
throw(IndexOutOfBoundsException, WrappedTargetException, RuntimeException);
};
-void ImplIntroTest::Init( void )
+void ImplIntroTest::Init()
{
// set unique name
static sal_Int32 nObjCount = 0;
@@ -525,7 +525,7 @@ Any ImplIntroTest::getPropertyValue( const OUString& PropertyName )
return Any();
}
-OUString ImplIntroTest::getFirstName(void)
+OUString ImplIntroTest::getFirstName()
throw(RuntimeException)
{
return OUString( OUString("Markus") );
diff --git a/stoc/test/testsmgr_cpnt.cxx b/stoc/test/testsmgr_cpnt.cxx
index 33d29837010c..807016dcc04a 100644
--- a/stoc/test/testsmgr_cpnt.cxx
+++ b/stoc/test/testsmgr_cpnt.cxx
@@ -95,8 +95,8 @@ public:
// XServiceInfo
OUString SAL_CALL getImplementationName() throw();
sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw();
- Sequence< OUString > SAL_CALL getSupportedServiceNames(void) throw();
- static Sequence< OUString > SAL_CALL getSupportedServiceNames_Static(void) throw();
+ Sequence< OUString > SAL_CALL getSupportedServiceNames() throw();
+ static Sequence< OUString > SAL_CALL getSupportedServiceNames_Static() throw();
private:
// static XIdlClassRef getStaticIdlClass();
@@ -144,7 +144,7 @@ sal_Bool Test_Manager_Impl::supportsService( const OUString& ServiceName ) throw
// Test_Manager_Impl::getSupportedServiceNames
-Sequence< OUString > Test_Manager_Impl::getSupportedServiceNames(void) throw ()
+Sequence< OUString > Test_Manager_Impl::getSupportedServiceNames() throw ()
{
return getSupportedServiceNames_Static();
}
@@ -152,7 +152,7 @@ Sequence< OUString > Test_Manager_Impl::getSupportedServiceNames(void) throw ()
// Test_Manager_Impl::getSupportedServiceNames_Static
-Sequence< OUString > Test_Manager_Impl::getSupportedServiceNames_Static(void) throw ()
+Sequence< OUString > Test_Manager_Impl::getSupportedServiceNames_Static() throw ()
{
Sequence< OUString > aSNS( 2 );
aSNS.getArray()[0] = SERVICE_NAME;