summaryrefslogtreecommitdiff
path: root/framework
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 /framework
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 'framework')
-rw-r--r--framework/inc/xml/imagesdocumenthandler.hxx4
-rw-r--r--framework/inc/xml/menudocumenthandler.hxx20
-rw-r--r--framework/inc/xml/saxnamespacefilter.hxx4
-rw-r--r--framework/inc/xml/statusbardocumenthandler.hxx4
-rw-r--r--framework/inc/xml/toolboxdocumenthandler.hxx4
-rw-r--r--framework/source/fwe/xml/menudocumenthandler.cxx16
-rw-r--r--framework/source/fwe/xml/saxnamespacefilter.cxx4
-rw-r--r--framework/source/fwe/xml/statusbardocumenthandler.cxx4
-rw-r--r--framework/source/fwe/xml/toolboxdocumenthandler.cxx4
-rw-r--r--framework/source/fwi/uielement/constitemcontainer.cxx4
-rw-r--r--framework/source/services/ContextChangeEventMultiplexer.cxx12
-rw-r--r--framework/source/xml/imagesdocumenthandler.cxx4
12 files changed, 42 insertions, 42 deletions
diff --git a/framework/inc/xml/imagesdocumenthandler.hxx b/framework/inc/xml/imagesdocumenthandler.hxx
index cbb83f07d297..fcdaa6a1874b 100644
--- a/framework/inc/xml/imagesdocumenthandler.hxx
+++ b/framework/inc/xml/imagesdocumenthandler.hxx
@@ -67,11 +67,11 @@ class OReadImagesDocumentHandler : public ::cppu::WeakImplHelper1< ::com::sun::s
virtual ~OReadImagesDocumentHandler();
// XDocumentHandler
- virtual void SAL_CALL startDocument(void)
+ virtual void SAL_CALL startDocument()
throw ( ::com::sun::star::xml::sax::SAXException,
::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
- virtual void SAL_CALL endDocument(void)
+ virtual void SAL_CALL endDocument()
throw( ::com::sun::star::xml::sax::SAXException,
::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
diff --git a/framework/inc/xml/menudocumenthandler.hxx b/framework/inc/xml/menudocumenthandler.hxx
index 10de22c60af6..0c049063fcef 100644
--- a/framework/inc/xml/menudocumenthandler.hxx
+++ b/framework/inc/xml/menudocumenthandler.hxx
@@ -42,11 +42,11 @@ class FWE_DLLPUBLIC ReadMenuDocumentHandlerBase :
virtual ~ReadMenuDocumentHandlerBase();
// XDocumentHandler
- virtual void SAL_CALL startDocument(void)
+ virtual void SAL_CALL startDocument()
throw ( ::com::sun::star::xml::sax::SAXException,
::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE = 0;
- virtual void SAL_CALL endDocument(void)
+ virtual void SAL_CALL endDocument()
throw( ::com::sun::star::xml::sax::SAXException,
::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE = 0;
@@ -103,11 +103,11 @@ class FWE_DLLPUBLIC OReadMenuDocumentHandler : public ReadMenuDocumentHandlerBas
virtual ~OReadMenuDocumentHandler();
// XDocumentHandler
- virtual void SAL_CALL startDocument(void)
+ virtual void SAL_CALL startDocument()
throw ( ::com::sun::star::xml::sax::SAXException,
::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
- virtual void SAL_CALL endDocument(void)
+ virtual void SAL_CALL endDocument()
throw( ::com::sun::star::xml::sax::SAXException,
::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
@@ -141,11 +141,11 @@ class FWE_DLLPUBLIC OReadMenuBarHandler : public ReadMenuDocumentHandlerBase
virtual ~OReadMenuBarHandler();
// XDocumentHandler
- virtual void SAL_CALL startDocument(void)
+ virtual void SAL_CALL startDocument()
throw ( ::com::sun::star::xml::sax::SAXException,
::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
- virtual void SAL_CALL endDocument(void)
+ virtual void SAL_CALL endDocument()
throw( ::com::sun::star::xml::sax::SAXException,
::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
@@ -178,11 +178,11 @@ class FWE_DLLPUBLIC OReadMenuHandler : public ReadMenuDocumentHandlerBase
virtual ~OReadMenuHandler();
// XDocumentHandler
- virtual void SAL_CALL startDocument(void)
+ virtual void SAL_CALL startDocument()
throw ( ::com::sun::star::xml::sax::SAXException,
::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
- virtual void SAL_CALL endDocument(void)
+ virtual void SAL_CALL endDocument()
throw( ::com::sun::star::xml::sax::SAXException,
::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
@@ -215,11 +215,11 @@ class FWE_DLLPUBLIC OReadMenuPopupHandler : public ReadMenuDocumentHandlerBase
virtual ~OReadMenuPopupHandler();
// XDocumentHandler
- virtual void SAL_CALL startDocument(void)
+ virtual void SAL_CALL startDocument()
throw ( ::com::sun::star::xml::sax::SAXException,
::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
- virtual void SAL_CALL endDocument(void)
+ virtual void SAL_CALL endDocument()
throw ( ::com::sun::star::xml::sax::SAXException,
::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
diff --git a/framework/inc/xml/saxnamespacefilter.hxx b/framework/inc/xml/saxnamespacefilter.hxx
index 82b632e8d198..b6764f2fdd9c 100644
--- a/framework/inc/xml/saxnamespacefilter.hxx
+++ b/framework/inc/xml/saxnamespacefilter.hxx
@@ -40,11 +40,11 @@ class FWE_DLLPUBLIC SaxNamespaceFilter :
virtual ~SaxNamespaceFilter();
// XDocumentHandler
- virtual void SAL_CALL startDocument(void)
+ virtual void SAL_CALL startDocument()
throw ( ::com::sun::star::xml::sax::SAXException,
::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
- virtual void SAL_CALL endDocument(void)
+ virtual void SAL_CALL endDocument()
throw( ::com::sun::star::xml::sax::SAXException,
::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
diff --git a/framework/inc/xml/statusbardocumenthandler.hxx b/framework/inc/xml/statusbardocumenthandler.hxx
index 96c70fdb72b3..a917fe15c284 100644
--- a/framework/inc/xml/statusbardocumenthandler.hxx
+++ b/framework/inc/xml/statusbardocumenthandler.hxx
@@ -65,11 +65,11 @@ class FWE_DLLPUBLIC OReadStatusBarDocumentHandler :
virtual ~OReadStatusBarDocumentHandler();
// XDocumentHandler
- virtual void SAL_CALL startDocument(void)
+ virtual void SAL_CALL startDocument()
throw ( ::com::sun::star::xml::sax::SAXException,
::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
- virtual void SAL_CALL endDocument(void)
+ virtual void SAL_CALL endDocument()
throw( ::com::sun::star::xml::sax::SAXException,
::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
diff --git a/framework/inc/xml/toolboxdocumenthandler.hxx b/framework/inc/xml/toolboxdocumenthandler.hxx
index 8fb52012d832..82eefaebbacc 100644
--- a/framework/inc/xml/toolboxdocumenthandler.hxx
+++ b/framework/inc/xml/toolboxdocumenthandler.hxx
@@ -70,11 +70,11 @@ class FWE_DLLPUBLIC OReadToolBoxDocumentHandler :
virtual ~OReadToolBoxDocumentHandler();
// XDocumentHandler
- virtual void SAL_CALL startDocument(void)
+ virtual void SAL_CALL startDocument()
throw ( ::com::sun::star::xml::sax::SAXException,
::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
- virtual void SAL_CALL endDocument(void)
+ virtual void SAL_CALL endDocument()
throw( ::com::sun::star::xml::sax::SAXException,
::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
diff --git a/framework/source/fwe/xml/menudocumenthandler.cxx b/framework/source/fwe/xml/menudocumenthandler.cxx
index 8d6e3d3cbd7a..9f48ff4ad901 100644
--- a/framework/source/fwe/xml/menudocumenthandler.cxx
+++ b/framework/source/fwe/xml/menudocumenthandler.cxx
@@ -227,12 +227,12 @@ OReadMenuDocumentHandler::~OReadMenuDocumentHandler()
{
}
-void SAL_CALL OReadMenuDocumentHandler::startDocument(void)
+void SAL_CALL OReadMenuDocumentHandler::startDocument()
throw ( SAXException, RuntimeException, std::exception )
{
}
-void SAL_CALL OReadMenuDocumentHandler::endDocument(void)
+void SAL_CALL OReadMenuDocumentHandler::endDocument()
throw( SAXException, RuntimeException, std::exception )
{
if ( m_nElementDepth > 0 )
@@ -303,12 +303,12 @@ OReadMenuBarHandler::~OReadMenuBarHandler()
{
}
-void SAL_CALL OReadMenuBarHandler::startDocument(void)
+void SAL_CALL OReadMenuBarHandler::startDocument()
throw ( SAXException, RuntimeException, std::exception )
{
}
-void SAL_CALL OReadMenuBarHandler::endDocument(void)
+void SAL_CALL OReadMenuBarHandler::endDocument()
throw( SAXException, RuntimeException, std::exception )
{
}
@@ -444,12 +444,12 @@ OReadMenuHandler::~OReadMenuHandler()
{
}
-void SAL_CALL OReadMenuHandler::startDocument(void)
+void SAL_CALL OReadMenuHandler::startDocument()
throw ( SAXException, RuntimeException, std::exception )
{
}
-void SAL_CALL OReadMenuHandler::endDocument(void)
+void SAL_CALL OReadMenuHandler::endDocument()
throw( SAXException, RuntimeException, std::exception)
{
}
@@ -522,12 +522,12 @@ OReadMenuPopupHandler::~OReadMenuPopupHandler()
{
}
-void SAL_CALL OReadMenuPopupHandler::startDocument(void)
+void SAL_CALL OReadMenuPopupHandler::startDocument()
throw ( SAXException, RuntimeException, std::exception )
{
}
-void SAL_CALL OReadMenuPopupHandler::endDocument(void)
+void SAL_CALL OReadMenuPopupHandler::endDocument()
throw( SAXException, RuntimeException, std::exception)
{
}
diff --git a/framework/source/fwe/xml/saxnamespacefilter.cxx b/framework/source/fwe/xml/saxnamespacefilter.cxx
index aa0d10cc7914..759807707b2c 100644
--- a/framework/source/fwe/xml/saxnamespacefilter.cxx
+++ b/framework/source/fwe/xml/saxnamespacefilter.cxx
@@ -49,12 +49,12 @@ SaxNamespaceFilter::~SaxNamespaceFilter()
}
// XDocumentHandler
-void SAL_CALL SaxNamespaceFilter::startDocument(void)
+void SAL_CALL SaxNamespaceFilter::startDocument()
throw ( SAXException, RuntimeException, std::exception )
{
}
-void SAL_CALL SaxNamespaceFilter::endDocument(void)
+void SAL_CALL SaxNamespaceFilter::endDocument()
throw( SAXException, RuntimeException, std::exception )
{
}
diff --git a/framework/source/fwe/xml/statusbardocumenthandler.cxx b/framework/source/fwe/xml/statusbardocumenthandler.cxx
index 00d1461c5369..55b6fe89629f 100644
--- a/framework/source/fwe/xml/statusbardocumenthandler.cxx
+++ b/framework/source/fwe/xml/statusbardocumenthandler.cxx
@@ -179,12 +179,12 @@ OReadStatusBarDocumentHandler::~OReadStatusBarDocumentHandler()
}
// XDocumentHandler
-void SAL_CALL OReadStatusBarDocumentHandler::startDocument(void)
+void SAL_CALL OReadStatusBarDocumentHandler::startDocument()
throw ( SAXException, RuntimeException, std::exception )
{
}
-void SAL_CALL OReadStatusBarDocumentHandler::endDocument(void)
+void SAL_CALL OReadStatusBarDocumentHandler::endDocument()
throw( SAXException, RuntimeException, std::exception )
{
SolarMutexGuard g;
diff --git a/framework/source/fwe/xml/toolboxdocumenthandler.cxx b/framework/source/fwe/xml/toolboxdocumenthandler.cxx
index e96f436b705e..a294ca9d788c 100644
--- a/framework/source/fwe/xml/toolboxdocumenthandler.cxx
+++ b/framework/source/fwe/xml/toolboxdocumenthandler.cxx
@@ -191,12 +191,12 @@ OReadToolBoxDocumentHandler::~OReadToolBoxDocumentHandler()
}
// XDocumentHandler
-void SAL_CALL OReadToolBoxDocumentHandler::startDocument(void)
+void SAL_CALL OReadToolBoxDocumentHandler::startDocument()
throw ( SAXException, RuntimeException, std::exception )
{
}
-void SAL_CALL OReadToolBoxDocumentHandler::endDocument(void)
+void SAL_CALL OReadToolBoxDocumentHandler::endDocument()
throw( SAXException, RuntimeException, std::exception )
{
SolarMutexGuard g;
diff --git a/framework/source/fwi/uielement/constitemcontainer.cxx b/framework/source/fwi/uielement/constitemcontainer.cxx
index 4254ead4e8f8..f1e88e434dcb 100644
--- a/framework/source/fwi/uielement/constitemcontainer.cxx
+++ b/framework/source/fwi/uielement/constitemcontainer.cxx
@@ -61,7 +61,7 @@ public:
OPropertySetHelperInfo_Impl( IPropertyArrayHelper & rHelper_ );
// XPropertySetInfo-Methoden
- virtual Sequence< Property > SAL_CALL getProperties(void) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
+ virtual Sequence< Property > SAL_CALL getProperties() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual Property SAL_CALL getPropertyByName(const OUString& PropertyName) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual sal_Bool SAL_CALL hasPropertyByName(const OUString& PropertyName) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
};
@@ -78,7 +78,7 @@ OPropertySetHelperInfo_Impl::OPropertySetHelperInfo_Impl(
/**
* Return the sequence of properties, which are provided through the constructor.
*/
-Sequence< Property > OPropertySetHelperInfo_Impl::getProperties(void) throw(::com::sun::star::uno::RuntimeException, std::exception)
+Sequence< Property > OPropertySetHelperInfo_Impl::getProperties() throw(::com::sun::star::uno::RuntimeException, std::exception)
{
return aInfos;
}
diff --git a/framework/source/services/ContextChangeEventMultiplexer.cxx b/framework/source/services/ContextChangeEventMultiplexer.cxx
index e1950dd45ef1..c47a0fe1d62f 100644
--- a/framework/source/services/ContextChangeEventMultiplexer.cxx
+++ b/framework/source/services/ContextChangeEventMultiplexer.cxx
@@ -53,9 +53,9 @@ class ContextChangeEventMultiplexer
{
public:
ContextChangeEventMultiplexer();
- virtual ~ContextChangeEventMultiplexer (void);
+ virtual ~ContextChangeEventMultiplexer();
- virtual void SAL_CALL disposing (void) SAL_OVERRIDE;
+ virtual void SAL_CALL disposing() SAL_OVERRIDE;
// XContextChangeEventMultiplexer
virtual void SAL_CALL addContextChangeEventListener (
@@ -75,12 +75,12 @@ public:
throw(cssu::RuntimeException, std::exception) SAL_OVERRIDE;
// XServiceInfo
- virtual ::rtl::OUString SAL_CALL getImplementationName (void)
+ virtual ::rtl::OUString SAL_CALL getImplementationName()
throw (cssu::RuntimeException, std::exception) SAL_OVERRIDE;
virtual sal_Bool SAL_CALL supportsService (
const ::rtl::OUString& rsServiceName)
throw (cssu::RuntimeException, std::exception) SAL_OVERRIDE;
- virtual cssu::Sequence< ::rtl::OUString> SAL_CALL getSupportedServiceNames (void)
+ virtual cssu::Sequence< ::rtl::OUString> SAL_CALL getSupportedServiceNames()
throw (cssu::RuntimeException, std::exception) SAL_OVERRIDE;
// XEventListener
@@ -120,11 +120,11 @@ ContextChangeEventMultiplexer::ContextChangeEventMultiplexer()
{
}
-ContextChangeEventMultiplexer::~ContextChangeEventMultiplexer (void)
+ContextChangeEventMultiplexer::~ContextChangeEventMultiplexer()
{
}
-void SAL_CALL ContextChangeEventMultiplexer::disposing (void)
+void SAL_CALL ContextChangeEventMultiplexer::disposing()
{
ListenerMap aListeners;
aListeners.swap(maListeners);
diff --git a/framework/source/xml/imagesdocumenthandler.cxx b/framework/source/xml/imagesdocumenthandler.cxx
index 0db4d4ebd17c..d78cd8f5abd8 100644
--- a/framework/source/xml/imagesdocumenthandler.cxx
+++ b/framework/source/xml/imagesdocumenthandler.cxx
@@ -140,12 +140,12 @@ OReadImagesDocumentHandler::~OReadImagesDocumentHandler()
}
// XDocumentHandler
-void SAL_CALL OReadImagesDocumentHandler::startDocument(void)
+void SAL_CALL OReadImagesDocumentHandler::startDocument()
throw ( SAXException, RuntimeException, std::exception )
{
}
-void SAL_CALL OReadImagesDocumentHandler::endDocument(void)
+void SAL_CALL OReadImagesDocumentHandler::endDocument()
throw( SAXException, RuntimeException, std::exception )
{
SolarMutexGuard g;