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 /basegfx | |
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 'basegfx')
-rw-r--r-- | basegfx/source/tools/unopolypolygon.cxx | 39 | ||||
-rw-r--r-- | basegfx/source/tools/unotools.cxx | 1 |
2 files changed, 18 insertions, 22 deletions
diff --git a/basegfx/source/tools/unopolypolygon.cxx b/basegfx/source/tools/unopolypolygon.cxx index 12e00a784422..6d87f738448c 100644 --- a/basegfx/source/tools/unopolypolygon.cxx +++ b/basegfx/source/tools/unopolypolygon.cxx @@ -51,7 +51,7 @@ namespace unotools void SAL_CALL UnoPolyPolygon::addPolyPolygon( const geometry::RealPoint2D& position, - const uno::Reference< rendering::XPolyPolygon2D >& polyPolygon ) throw (lang::IllegalArgumentException,uno::RuntimeException, std::exception) + const uno::Reference< rendering::XPolyPolygon2D >& polyPolygon ) { osl::MutexGuard const guard( m_aMutex ); modifying(); @@ -129,14 +129,14 @@ namespace unotools maPolyPoly.append( aSrcPoly ); } - sal_Int32 SAL_CALL UnoPolyPolygon::getNumberOfPolygons() throw (uno::RuntimeException, std::exception) + sal_Int32 SAL_CALL UnoPolyPolygon::getNumberOfPolygons() { osl::MutexGuard const guard( m_aMutex ); return maPolyPoly.count(); } sal_Int32 SAL_CALL UnoPolyPolygon::getNumberOfPolygonPoints( - sal_Int32 polygon ) throw (lang::IndexOutOfBoundsException,uno::RuntimeException, std::exception) + sal_Int32 polygon ) { osl::MutexGuard const guard( m_aMutex ); checkIndex( polygon ); @@ -144,14 +144,14 @@ namespace unotools return maPolyPoly.getB2DPolygon(polygon).count(); } - rendering::FillRule SAL_CALL UnoPolyPolygon::getFillRule() throw (uno::RuntimeException, std::exception) + rendering::FillRule SAL_CALL UnoPolyPolygon::getFillRule() { osl::MutexGuard const guard( m_aMutex ); return meFillRule; } void SAL_CALL UnoPolyPolygon::setFillRule( - rendering::FillRule fillRule ) throw (uno::RuntimeException, std::exception) + rendering::FillRule fillRule ) { osl::MutexGuard const guard( m_aMutex ); modifying(); @@ -160,7 +160,7 @@ namespace unotools } sal_Bool SAL_CALL UnoPolyPolygon::isClosed( - sal_Int32 index ) throw (lang::IndexOutOfBoundsException,uno::RuntimeException, std::exception) + sal_Int32 index ) { osl::MutexGuard const guard( m_aMutex ); checkIndex( index ); @@ -170,7 +170,7 @@ namespace unotools void SAL_CALL UnoPolyPolygon::setClosed( sal_Int32 index, - sal_Bool closedState ) throw (lang::IndexOutOfBoundsException,uno::RuntimeException, std::exception) + sal_Bool closedState ) { osl::MutexGuard const guard( m_aMutex ); modifying(); @@ -197,7 +197,7 @@ namespace unotools sal_Int32 nPolygonIndex, sal_Int32 nNumberOfPolygons, sal_Int32 nPointIndex, - sal_Int32 nNumberOfPoints ) throw (lang::IndexOutOfBoundsException,uno::RuntimeException, std::exception) + sal_Int32 nNumberOfPoints ) { osl::MutexGuard const guard( m_aMutex ); @@ -210,7 +210,7 @@ namespace unotools void SAL_CALL UnoPolyPolygon::setPoints( const uno::Sequence< uno::Sequence< geometry::RealPoint2D > >& points, - sal_Int32 nPolygonIndex ) throw (lang::IndexOutOfBoundsException,uno::RuntimeException, std::exception) + sal_Int32 nPolygonIndex ) { osl::MutexGuard const guard( m_aMutex ); modifying(); @@ -232,7 +232,7 @@ namespace unotools geometry::RealPoint2D SAL_CALL UnoPolyPolygon::getPoint( sal_Int32 nPolygonIndex, - sal_Int32 nPointIndex ) throw (lang::IndexOutOfBoundsException,uno::RuntimeException, std::exception) + sal_Int32 nPointIndex ) { osl::MutexGuard const guard( m_aMutex ); checkIndex( nPolygonIndex ); @@ -248,7 +248,7 @@ namespace unotools void SAL_CALL UnoPolyPolygon::setPoint( const geometry::RealPoint2D& point, sal_Int32 nPolygonIndex, - sal_Int32 nPointIndex ) throw (lang::IndexOutOfBoundsException,uno::RuntimeException, std::exception) + sal_Int32 nPointIndex ) { osl::MutexGuard const guard( m_aMutex ); checkIndex( nPolygonIndex ); @@ -268,7 +268,7 @@ namespace unotools sal_Int32 nPolygonIndex, sal_Int32 nNumberOfPolygons, sal_Int32 nPointIndex, - sal_Int32 nNumberOfPoints ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException, std::exception) + sal_Int32 nNumberOfPoints ) { osl::MutexGuard const guard( m_aMutex ); return unotools::bezierSequenceSequenceFromB2DPolyPolygon( @@ -280,8 +280,7 @@ namespace unotools void SAL_CALL UnoPolyPolygon::setBezierSegments( const uno::Sequence< uno::Sequence< geometry::RealBezierSegment2D > >& points, - sal_Int32 nPolygonIndex ) throw (lang::IndexOutOfBoundsException, - uno::RuntimeException, std::exception) + sal_Int32 nPolygonIndex ) { osl::MutexGuard const guard( m_aMutex ); modifying(); @@ -301,8 +300,7 @@ namespace unotools } geometry::RealBezierSegment2D SAL_CALL UnoPolyPolygon::getBezierSegment( sal_Int32 nPolygonIndex, - sal_Int32 nPointIndex ) throw (lang::IndexOutOfBoundsException, - uno::RuntimeException, std::exception) + sal_Int32 nPointIndex ) { osl::MutexGuard const guard( m_aMutex ); checkIndex( nPolygonIndex ); @@ -327,8 +325,7 @@ namespace unotools void SAL_CALL UnoPolyPolygon::setBezierSegment( const geometry::RealBezierSegment2D& segment, sal_Int32 nPolygonIndex, - sal_Int32 nPointIndex ) throw (lang::IndexOutOfBoundsException, - uno::RuntimeException, std::exception) + sal_Int32 nPointIndex ) { osl::MutexGuard const guard( m_aMutex ); checkIndex( nPolygonIndex ); @@ -436,17 +433,17 @@ namespace unotools #define IMPLEMENTATION_NAME "gfx::internal::UnoPolyPolygon" #define SERVICE_NAME "com.sun.star.rendering.PolyPolygon2D" - OUString SAL_CALL UnoPolyPolygon::getImplementationName() throw( uno::RuntimeException, std::exception ) + OUString SAL_CALL UnoPolyPolygon::getImplementationName() { return OUString( IMPLEMENTATION_NAME ); } - sal_Bool SAL_CALL UnoPolyPolygon::supportsService( const OUString& ServiceName ) throw( uno::RuntimeException, std::exception ) + sal_Bool SAL_CALL UnoPolyPolygon::supportsService( const OUString& ServiceName ) { return cppu::supportsService(this, ServiceName); } - uno::Sequence< OUString > SAL_CALL UnoPolyPolygon::getSupportedServiceNames() throw( uno::RuntimeException, std::exception ) + uno::Sequence< OUString > SAL_CALL UnoPolyPolygon::getSupportedServiceNames() { return { SERVICE_NAME }; } diff --git a/basegfx/source/tools/unotools.cxx b/basegfx/source/tools/unotools.cxx index b1666c3d149a..4e98741b9525 100644 --- a/basegfx/source/tools/unotools.cxx +++ b/basegfx/source/tools/unotools.cxx @@ -36,7 +36,6 @@ namespace unotools { B2DPolyPolygon polyPolygonBezierToB2DPolyPolygon(const drawing::PolyPolygonBezierCoords& rSourcePolyPolygon) - throw( lang::IllegalArgumentException ) { const sal_Int32 nOuterSequenceCount(rSourcePolyPolygon.Coordinates.getLength()); B2DPolyPolygon aNewPolyPolygon; |