diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-01-26 12:28:58 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-01-26 12:54:43 +0000 |
commit | e57ca02849c3d87142ff5ff9099a212e72b8139c (patch) | |
tree | bcce66b27261553c308779f3e8663a269ed3a671 /sw/source/core/access/accdoc.cxx | |
parent | 8802ebd5172ec4bc412a59d136c82b77ab452281 (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 'sw/source/core/access/accdoc.cxx')
-rw-r--r-- | sw/source/core/access/accdoc.cxx | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/sw/source/core/access/accdoc.cxx b/sw/source/core/access/accdoc.cxx index b64c39a9bb52..c206dcae072b 100644 --- a/sw/source/core/access/accdoc.cxx +++ b/sw/source/core/access/accdoc.cxx @@ -133,7 +133,6 @@ void SwAccessibleDocumentBase::RemoveChild( vcl::Window *pWin ) } sal_Int32 SAL_CALL SwAccessibleDocumentBase::getAccessibleChildCount() - throw (uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -148,8 +147,6 @@ sal_Int32 SAL_CALL SwAccessibleDocumentBase::getAccessibleChildCount() uno::Reference< XAccessible> SAL_CALL SwAccessibleDocumentBase::getAccessibleChild( sal_Int32 nIndex ) - throw (uno::RuntimeException, - lang::IndexOutOfBoundsException, std::exception) { SolarMutexGuard aGuard; @@ -166,13 +163,11 @@ uno::Reference< XAccessible> SAL_CALL } uno::Reference< XAccessible> SAL_CALL SwAccessibleDocumentBase::getAccessibleParent() - throw (uno::RuntimeException, std::exception) { return mxParent; } sal_Int32 SAL_CALL SwAccessibleDocumentBase::getAccessibleIndexInParent() - throw (uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -196,13 +191,11 @@ sal_Int32 SAL_CALL SwAccessibleDocumentBase::getAccessibleIndexInParent() } OUString SAL_CALL SwAccessibleDocumentBase::getAccessibleDescription() - throw (uno::RuntimeException, std::exception) { return GetResource( STR_ACCESS_DOC_DESC ); } OUString SAL_CALL SwAccessibleDocumentBase::getAccessibleName() - throw (css::uno::RuntimeException, std::exception) { SolarMutexGuard g; @@ -230,7 +223,6 @@ OUString SAL_CALL SwAccessibleDocumentBase::getAccessibleName() } awt::Rectangle SAL_CALL SwAccessibleDocumentBase::getBounds() - throw (uno::RuntimeException, std::exception) { try { @@ -253,7 +245,6 @@ awt::Rectangle SAL_CALL SwAccessibleDocumentBase::getBounds() } awt::Point SAL_CALL SwAccessibleDocumentBase::getLocation() - throw (uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -268,7 +259,6 @@ awt::Point SAL_CALL SwAccessibleDocumentBase::getLocation() } css::awt::Point SAL_CALL SwAccessibleDocumentBase::getLocationOnScreen() - throw (uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -283,7 +273,6 @@ css::awt::Point SAL_CALL SwAccessibleDocumentBase::getLocationOnScreen() } css::awt::Size SAL_CALL SwAccessibleDocumentBase::getSize() - throw (uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -299,7 +288,6 @@ css::awt::Size SAL_CALL SwAccessibleDocumentBase::getSize() sal_Bool SAL_CALL SwAccessibleDocumentBase::containsPoint( const awt::Point& aPoint ) - throw (uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -316,7 +304,6 @@ sal_Bool SAL_CALL SwAccessibleDocumentBase::containsPoint( uno::Reference< XAccessible > SAL_CALL SwAccessibleDocumentBase::getAccessibleAtPoint( const awt::Point& aPoint ) - throw (uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -421,19 +408,16 @@ IMPL_LINK( SwAccessibleDocument, WindowChildEventListener, VclWindowEvent&, rEve } OUString SAL_CALL SwAccessibleDocument::getImplementationName() - throw( uno::RuntimeException, std::exception ) { return OUString(sImplementationName); } sal_Bool SAL_CALL SwAccessibleDocument::supportsService(const OUString& sTestServiceName) - throw (uno::RuntimeException, std::exception) { return cppu::supportsService(this, sTestServiceName); } uno::Sequence< OUString > SAL_CALL SwAccessibleDocument::getSupportedServiceNames() - throw( uno::RuntimeException, std::exception ) { uno::Sequence< OUString > aRet(2); OUString* pArray = aRet.getArray(); @@ -446,7 +430,6 @@ uno::Sequence< OUString > SAL_CALL SwAccessibleDocument::getSupportedServiceName uno::Any SwAccessibleDocument::queryInterface( const uno::Type& rType ) - throw ( uno::RuntimeException, std::exception ) { uno::Any aRet; if ( rType == cppu::UnoType<XAccessibleSelection>::get() ) @@ -471,7 +454,6 @@ uno::Any SwAccessibleDocument::queryInterface( // XTypeProvider uno::Sequence< uno::Type > SAL_CALL SwAccessibleDocument::getTypes() - throw(uno::RuntimeException, std::exception) { uno::Sequence< uno::Type > aTypes( SwAccessibleDocumentBase::getTypes() ); @@ -485,7 +467,6 @@ uno::Sequence< uno::Type > SAL_CALL SwAccessibleDocument::getTypes() } uno::Sequence< sal_Int8 > SAL_CALL SwAccessibleDocument::getImplementationId() - throw(uno::RuntimeException, std::exception) { return css::uno::Sequence<sal_Int8>(); } @@ -494,41 +475,32 @@ uno::Sequence< sal_Int8 > SAL_CALL SwAccessibleDocument::getImplementationId() void SwAccessibleDocument::selectAccessibleChild( sal_Int32 nChildIndex ) - throw ( lang::IndexOutOfBoundsException, - uno::RuntimeException, std::exception ) { maSelectionHelper.selectAccessibleChild(nChildIndex); } sal_Bool SwAccessibleDocument::isAccessibleChildSelected( sal_Int32 nChildIndex ) - throw ( lang::IndexOutOfBoundsException, - uno::RuntimeException, std::exception ) { return maSelectionHelper.isAccessibleChildSelected(nChildIndex); } void SwAccessibleDocument::clearAccessibleSelection( ) - throw ( uno::RuntimeException, std::exception ) { } void SwAccessibleDocument::selectAllAccessibleChildren( ) - throw ( uno::RuntimeException, std::exception ) { maSelectionHelper.selectAllAccessibleChildren(); } sal_Int32 SwAccessibleDocument::getSelectedAccessibleChildCount( ) - throw ( uno::RuntimeException, std::exception ) { return maSelectionHelper.getSelectedAccessibleChildCount(); } uno::Reference<XAccessible> SwAccessibleDocument::getSelectedAccessibleChild( sal_Int32 nSelectedChildIndex ) - throw ( lang::IndexOutOfBoundsException, - uno::RuntimeException, std::exception) { return maSelectionHelper.getSelectedAccessibleChild(nSelectedChildIndex); } @@ -536,16 +508,11 @@ uno::Reference<XAccessible> SwAccessibleDocument::getSelectedAccessibleChild( // index has to be treated as global child index. void SwAccessibleDocument::deselectAccessibleChild( sal_Int32 nChildIndex ) - throw ( lang::IndexOutOfBoundsException, - uno::RuntimeException, std::exception ) { maSelectionHelper.deselectAccessibleChild( nChildIndex ); } uno::Any SAL_CALL SwAccessibleDocument::getExtendedAttributes() - throw (css::lang::IndexOutOfBoundsException, - css::uno::RuntimeException, - std::exception) { SolarMutexGuard g; @@ -776,7 +743,6 @@ uno::Any SAL_CALL SwAccessibleDocument::getExtendedAttributes() } sal_Int32 SAL_CALL SwAccessibleDocument::getBackground() - throw (css::uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; return SW_MOD()->GetColorConfig().GetColorValue( ::svtools::DOCCOLOR ).nColor; @@ -784,8 +750,6 @@ sal_Int32 SAL_CALL SwAccessibleDocument::getBackground() css::uno::Sequence< css::uno::Any > SAL_CALL SwAccessibleDocument::getAccFlowTo(const css::uno::Any& rAny, sal_Int32 nType) - throw (css::uno::RuntimeException, - std::exception) { SolarMutexGuard g; |