summaryrefslogtreecommitdiff
path: root/winaccessibility/source/service
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-26 12:28:58 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-26 12:54:43 +0000
commite57ca02849c3d87142ff5ff9099a212e72b8139c (patch)
treebcce66b27261553c308779f3e8663a269ed3a671 /winaccessibility/source/service
parent8802ebd5172ec4bc412a59d136c82b77ab452281 (diff)
Remove dynamic exception specifications
...(for now, from LIBO_INTERNAL_CODE only). See the mail thread starting at <https://lists.freedesktop.org/archives/libreoffice/2017-January/076665.html> "Dynamic Exception Specifications" for details. Most changes have been done automatically by the rewriting loplugin:dynexcspec (after enabling the rewriting mode, to be committed shortly). The way it only removes exception specs from declarations if it also sees a definition, it identified some dead declarations-w/o-definitions (that have been removed manually) and some cases where a definition appeared in multiple include files (which have also been cleaned up manually). There's also been cases of macro paramters (that were used to abstract over exception specs) that have become unused now (and been removed). Furthermore, some code needed to be cleaned up manually (avmedia/source/quicktime/ and connectivity/source/drivers/kab/), as I had no configurations available that would actually build that code. Missing @throws documentation has not been applied in such manual clean-up. Change-Id: I3408691256c9b0c12bc5332de976743626e13960 Reviewed-on: https://gerrit.libreoffice.org/33574 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'winaccessibility/source/service')
-rw-r--r--winaccessibility/source/service/AccComponentEventListener.cxx1
-rw-r--r--winaccessibility/source/service/AccContainerEventListener.cxx1
-rw-r--r--winaccessibility/source/service/AccDescendantManagerEventListener.cxx1
-rw-r--r--winaccessibility/source/service/AccDialogEventListener.cxx1
-rw-r--r--winaccessibility/source/service/AccEventListener.cxx2
-rw-r--r--winaccessibility/source/service/AccFrameEventListener.cxx1
-rw-r--r--winaccessibility/source/service/AccListEventListener.cxx2
-rw-r--r--winaccessibility/source/service/AccMenuEventListener.cxx1
-rw-r--r--winaccessibility/source/service/AccParagraphEventListener.cxx1
-rw-r--r--winaccessibility/source/service/AccTableEventListener.cxx1
-rw-r--r--winaccessibility/source/service/AccTopWindowListener.cxx16
-rw-r--r--winaccessibility/source/service/AccTreeEventListener.cxx2
-rw-r--r--winaccessibility/source/service/AccWindowEventListener.cxx2
-rw-r--r--winaccessibility/source/service/msaaservice_impl.cxx33
14 files changed, 22 insertions, 43 deletions
diff --git a/winaccessibility/source/service/AccComponentEventListener.cxx b/winaccessibility/source/service/AccComponentEventListener.cxx
index 39fb61103cf7..97f3112aa979 100644
--- a/winaccessibility/source/service/AccComponentEventListener.cxx
+++ b/winaccessibility/source/service/AccComponentEventListener.cxx
@@ -47,7 +47,6 @@ AccComponentEventListener::~AccComponentEventListener()
* @param AccessibleEventObject the event object which contains information about event
*/
void AccComponentEventListener::notifyEvent( const css::accessibility::AccessibleEventObject& aEvent )
-throw (css::uno::RuntimeException)
{
SolarMutexGuard g;
diff --git a/winaccessibility/source/service/AccContainerEventListener.cxx b/winaccessibility/source/service/AccContainerEventListener.cxx
index c52f3e3a1d53..b26ee70fd85a 100644
--- a/winaccessibility/source/service/AccContainerEventListener.cxx
+++ b/winaccessibility/source/service/AccContainerEventListener.cxx
@@ -47,7 +47,6 @@ AccContainerEventListener::~AccContainerEventListener()
* @param AccessibleEventObject the event object which contains information about event
*/
void AccContainerEventListener::notifyEvent( const css::accessibility::AccessibleEventObject& aEvent )
-throw (css::uno::RuntimeException)
{
SolarMutexGuard g;
diff --git a/winaccessibility/source/service/AccDescendantManagerEventListener.cxx b/winaccessibility/source/service/AccDescendantManagerEventListener.cxx
index fe2f6ec02420..1a46dd4e67b5 100644
--- a/winaccessibility/source/service/AccDescendantManagerEventListener.cxx
+++ b/winaccessibility/source/service/AccDescendantManagerEventListener.cxx
@@ -46,7 +46,6 @@ AccDescendantManagerEventListener::~AccDescendantManagerEventListener()
* @param AccessibleEventObject the event object which contains information about event
*/
void AccDescendantManagerEventListener::notifyEvent( const css::accessibility::AccessibleEventObject& aEvent )
-throw (css::uno::RuntimeException)
{
SolarMutexGuard g;
diff --git a/winaccessibility/source/service/AccDialogEventListener.cxx b/winaccessibility/source/service/AccDialogEventListener.cxx
index a053d1cb7470..3810539c084a 100644
--- a/winaccessibility/source/service/AccDialogEventListener.cxx
+++ b/winaccessibility/source/service/AccDialogEventListener.cxx
@@ -44,7 +44,6 @@ AccDialogEventListener::~AccDialogEventListener()
* @param AccessibleEventObject the event object which contains information about event
*/
void AccDialogEventListener::notifyEvent( const css::accessibility::AccessibleEventObject& aEvent )
-throw (css::uno::RuntimeException)
{
SolarMutexGuard g;
diff --git a/winaccessibility/source/service/AccEventListener.cxx b/winaccessibility/source/service/AccEventListener.cxx
index a5b608cb7908..c508de5092b1 100644
--- a/winaccessibility/source/service/AccEventListener.cxx
+++ b/winaccessibility/source/service/AccEventListener.cxx
@@ -57,7 +57,6 @@ AccEventListener::~AccEventListener()
* @param AccessibleEventObject the event object which contains information about event
*/
void AccEventListener::notifyEvent( const css::accessibility::AccessibleEventObject& aEvent )
-throw (css::uno::RuntimeException)
{
SolarMutexGuard g;
@@ -259,7 +258,6 @@ void AccEventListener::RemoveMeFromBroadcaster()
* this method is invoked before listener is disposed
*/
void AccEventListener::disposing( const css::lang::EventObject& /*Source*/ )
-throw (css::uno::RuntimeException)
{
SolarMutexGuard g;
diff --git a/winaccessibility/source/service/AccFrameEventListener.cxx b/winaccessibility/source/service/AccFrameEventListener.cxx
index 0dbb45130ff4..f131de0af0bd 100644
--- a/winaccessibility/source/service/AccFrameEventListener.cxx
+++ b/winaccessibility/source/service/AccFrameEventListener.cxx
@@ -50,7 +50,6 @@ AccFrameEventListener::~AccFrameEventListener()
* @param AccessibleEventObject the event object which contains information about event
*/
void AccFrameEventListener::notifyEvent( const css::accessibility::AccessibleEventObject& aEvent )
-throw (css::uno::RuntimeException)
{
SolarMutexGuard g;
diff --git a/winaccessibility/source/service/AccListEventListener.cxx b/winaccessibility/source/service/AccListEventListener.cxx
index 9557bfbd3093..d6747faf5fa1 100644
--- a/winaccessibility/source/service/AccListEventListener.cxx
+++ b/winaccessibility/source/service/AccListEventListener.cxx
@@ -45,7 +45,7 @@ AccListEventListener::~AccListEventListener()
* Uno's event notifier when event is captured
* @param AccessibleEventObject the event object which contains information about event
*/
-void AccListEventListener::notifyEvent( const css::accessibility::AccessibleEventObject& aEvent ) throw (css::uno::RuntimeException)
+void AccListEventListener::notifyEvent( const css::accessibility::AccessibleEventObject& aEvent )
{
SolarMutexGuard g;
diff --git a/winaccessibility/source/service/AccMenuEventListener.cxx b/winaccessibility/source/service/AccMenuEventListener.cxx
index 50119671d00e..279fdf695dfb 100644
--- a/winaccessibility/source/service/AccMenuEventListener.cxx
+++ b/winaccessibility/source/service/AccMenuEventListener.cxx
@@ -44,7 +44,6 @@ AccMenuEventListener::~AccMenuEventListener()
* @param AccessibleEventObject the event object which contains information about event
*/
void AccMenuEventListener::notifyEvent( const css::accessibility::AccessibleEventObject& aEvent )
-throw (css::uno::RuntimeException)
{
SolarMutexGuard g;
diff --git a/winaccessibility/source/service/AccParagraphEventListener.cxx b/winaccessibility/source/service/AccParagraphEventListener.cxx
index 58c248b395fc..bc2762c0a9e8 100644
--- a/winaccessibility/source/service/AccParagraphEventListener.cxx
+++ b/winaccessibility/source/service/AccParagraphEventListener.cxx
@@ -44,7 +44,6 @@ AccParagraphEventListener::~AccParagraphEventListener()
* @param AccessibleEventObject the event object which contains information about event
*/
void AccParagraphEventListener::notifyEvent( const css::accessibility::AccessibleEventObject& aEvent )
-throw (css::uno::RuntimeException)
{
SolarMutexGuard g;
diff --git a/winaccessibility/source/service/AccTableEventListener.cxx b/winaccessibility/source/service/AccTableEventListener.cxx
index c413ef050795..8beb7b35c898 100644
--- a/winaccessibility/source/service/AccTableEventListener.cxx
+++ b/winaccessibility/source/service/AccTableEventListener.cxx
@@ -45,7 +45,6 @@ AccTableEventListener::~AccTableEventListener()
* @param AccessibleEventObject the event object which contains information about event
*/
void AccTableEventListener::notifyEvent( const css::accessibility::AccessibleEventObject& aEvent )
-throw (css::uno::RuntimeException)
{
SolarMutexGuard g;
diff --git a/winaccessibility/source/service/AccTopWindowListener.cxx b/winaccessibility/source/service/AccTopWindowListener.cxx
index 9fda3ed1732a..2bbcfd33177f 100644
--- a/winaccessibility/source/service/AccTopWindowListener.cxx
+++ b/winaccessibility/source/service/AccTopWindowListener.cxx
@@ -109,7 +109,7 @@ AccTopWindowListener::~AccTopWindowListener()
/**
* It is invoked when a new window is opened, the source of this EventObject is the window
*/
-void AccTopWindowListener::windowOpened( const css::lang::EventObject& e ) throw (css::uno::RuntimeException)
+void AccTopWindowListener::windowOpened( const css::lang::EventObject& e )
{
SAL_INFO( "iacc2", "windowOpened triggered" );
@@ -185,7 +185,7 @@ void AccTopWindowListener::AddAllListeners(css::accessibility::XAccessible* pAcc
}
}
-void AccTopWindowListener::windowClosing( const css::lang::EventObject& ) throw (css::uno::RuntimeException)
+void AccTopWindowListener::windowClosing( const css::lang::EventObject& )
{
SAL_INFO( "iacc2", "windowClosing triggered" );
}
@@ -195,7 +195,7 @@ void AccTopWindowListener::windowClosing( const css::lang::EventObject& ) throw
* from current manager's cache, and remove the COM object and the accessible event listener
* assigned to the accessible objects.
*/
-void AccTopWindowListener::windowClosed( const css::lang::EventObject& e ) throw (css::uno::RuntimeException)
+void AccTopWindowListener::windowClosed( const css::lang::EventObject& e )
{
SAL_INFO( "iacc2", "windowClosed triggered" );
@@ -233,23 +233,23 @@ void AccTopWindowListener::windowClosed( const css::lang::EventObject& e ) throw
}
-void AccTopWindowListener::windowMinimized( const css::lang::EventObject& ) throw (css::uno::RuntimeException)
+void AccTopWindowListener::windowMinimized( const css::lang::EventObject& )
{
}
-void AccTopWindowListener::windowNormalized( const css::lang::EventObject& ) throw (css::uno::RuntimeException)
+void AccTopWindowListener::windowNormalized( const css::lang::EventObject& )
{
}
-void AccTopWindowListener::windowActivated( const css::lang::EventObject& ) throw (css::uno::RuntimeException)
+void AccTopWindowListener::windowActivated( const css::lang::EventObject& )
{
}
-void AccTopWindowListener::windowDeactivated( const css::lang::EventObject& ) throw (css::uno::RuntimeException)
+void AccTopWindowListener::windowDeactivated( const css::lang::EventObject& )
{
}
-void AccTopWindowListener::disposing( const css::lang::EventObject& ) throw (css::uno::RuntimeException)
+void AccTopWindowListener::disposing( const css::lang::EventObject& )
{
}
diff --git a/winaccessibility/source/service/AccTreeEventListener.cxx b/winaccessibility/source/service/AccTreeEventListener.cxx
index 59f80bfce7a1..830bcbaa35c3 100644
--- a/winaccessibility/source/service/AccTreeEventListener.cxx
+++ b/winaccessibility/source/service/AccTreeEventListener.cxx
@@ -43,7 +43,7 @@ AccTreeEventListener::~AccTreeEventListener()
* Uno's event notifier when event is captured
* @param AccessibleEventObject the event object which contains information about event
*/
-void AccTreeEventListener::notifyEvent( const css::accessibility::AccessibleEventObject& aEvent ) throw (css::uno::RuntimeException)
+void AccTreeEventListener::notifyEvent( const css::accessibility::AccessibleEventObject& aEvent )
{
SolarMutexGuard g;
diff --git a/winaccessibility/source/service/AccWindowEventListener.cxx b/winaccessibility/source/service/AccWindowEventListener.cxx
index c89972031db3..e71112af230b 100644
--- a/winaccessibility/source/service/AccWindowEventListener.cxx
+++ b/winaccessibility/source/service/AccWindowEventListener.cxx
@@ -43,7 +43,7 @@ AccWindowEventListener::~AccWindowEventListener()
* Uno's event notifier when event is captured
* @param AccessibleEventObject: the event object which contains information about event
*/
-void AccWindowEventListener::notifyEvent( const css::accessibility::AccessibleEventObject& aEvent ) throw (css::uno::RuntimeException)
+void AccWindowEventListener::notifyEvent( const css::accessibility::AccessibleEventObject& aEvent )
{
SolarMutexGuard g;
diff --git a/winaccessibility/source/service/msaaservice_impl.cxx b/winaccessibility/source/service/msaaservice_impl.cxx
index 943e70ba27a9..f3220b92fb5e 100644
--- a/winaccessibility/source/service/msaaservice_impl.cxx
+++ b/winaccessibility/source/service/msaaservice_impl.cxx
@@ -66,29 +66,21 @@ public:
MSAAServiceImpl ();
// XComponent - as used by VCL to lifecycle manage this bridge.
- virtual void SAL_CALL dispose()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL addEventListener( const css::uno::Reference< css::lang::XEventListener >& )
- throw (css::uno::RuntimeException, std::exception) override
+ virtual void SAL_CALL dispose() override;
+ virtual void SAL_CALL addEventListener( const css::uno::Reference< css::lang::XEventListener >& ) override
{ /* dummy */ }
- virtual void SAL_CALL removeEventListener( const css::uno::Reference< css::lang::XEventListener >& )
- throw (css::uno::RuntimeException, std::exception) override
+ virtual void SAL_CALL removeEventListener( const css::uno::Reference< css::lang::XEventListener >& ) override
{ /* dummy */ }
// XMSAAService
virtual sal_Int64 SAL_CALL getAccObjectPtr(
- sal_Int64 hWnd, sal_Int64 lParam, sal_Int64 wParam)
- throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL handleWindowOpened(sal_Int64)
- throw (css::uno::RuntimeException, std::exception) override;
+ sal_Int64 hWnd, sal_Int64 lParam, sal_Int64 wParam) override;
+ virtual void SAL_CALL handleWindowOpened(sal_Int64) override;
// XServiceInfo
- virtual OUString SAL_CALL getImplementationName()
- throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsService( OUString const & serviceName )
- throw (css::uno::RuntimeException, std::exception) override;
- virtual Sequence< OUString > SAL_CALL getSupportedServiceNames()
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getImplementationName() override;
+ virtual sal_Bool SAL_CALL supportsService( OUString const & serviceName ) override;
+ virtual Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
};
/**
@@ -98,7 +90,6 @@ public:
*/
sal_Int64 MSAAServiceImpl::getAccObjectPtr(
sal_Int64 hWnd, sal_Int64 lParam, sal_Int64 wParam)
-throw (RuntimeException, std::exception)
{
SolarMutexGuard g;
@@ -116,7 +107,6 @@ throw (RuntimeException, std::exception)
* @return
*/
void MSAAServiceImpl::handleWindowOpened(sal_Int64 nAcc)
- throw (css::uno::RuntimeException, std::exception)
{
SolarMutexGuard g;
@@ -130,7 +120,7 @@ void MSAAServiceImpl::handleWindowOpened(sal_Int64 nAcc)
}
}
-OUString MSAAServiceImpl::getImplementationName() throw (RuntimeException, std::exception)
+OUString MSAAServiceImpl::getImplementationName()
{
return getImplementationName_MSAAServiceImpl();
}
@@ -140,7 +130,7 @@ OUString MSAAServiceImpl::getImplementationName() throw (RuntimeException, std::
* @param Service name.
* @return If the service name is supported.
*/
-sal_Bool MSAAServiceImpl::supportsService( OUString const & serviceName ) throw (RuntimeException, std::exception)
+sal_Bool MSAAServiceImpl::supportsService( OUString const & serviceName )
{
return cppu::supportsService(this, serviceName);
}
@@ -150,7 +140,7 @@ sal_Bool MSAAServiceImpl::supportsService( OUString const & serviceName ) throw
* @param.
* @return service name sequence.
*/
-Sequence< OUString > MSAAServiceImpl::getSupportedServiceNames() throw (RuntimeException, std::exception)
+Sequence< OUString > MSAAServiceImpl::getSupportedServiceNames()
{
return getSupportedServiceNames_MSAAServiceImpl();
}
@@ -277,7 +267,6 @@ MSAAServiceImpl::MSAAServiceImpl()
}
void MSAAServiceImpl::dispose()
- throw (css::uno::RuntimeException, std::exception)
{
SolarMutexGuard g;