summaryrefslogtreecommitdiff
path: root/canvas/source/simplecanvas
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 /canvas/source/simplecanvas
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 'canvas/source/simplecanvas')
-rw-r--r--canvas/source/simplecanvas/simplecanvasimpl.cxx46
1 files changed, 22 insertions, 24 deletions
diff --git a/canvas/source/simplecanvas/simplecanvasimpl.cxx b/canvas/source/simplecanvas/simplecanvasimpl.cxx
index 613724558734..8d632ec4886a 100644
--- a/canvas/source/simplecanvas/simplecanvasimpl.cxx
+++ b/canvas/source/simplecanvas/simplecanvasimpl.cxx
@@ -171,7 +171,7 @@ namespace
private:
// Ifc XServiceName
- virtual OUString SAL_CALL getServiceName( ) throw (uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getServiceName( ) override
{
return OUString( SERVICE_NAME );
}
@@ -180,7 +180,7 @@ namespace
virtual void SAL_CALL selectFont( const OUString& sFontName,
double size,
sal_Bool bold,
- sal_Bool italic ) throw (uno::RuntimeException, std::exception) override
+ sal_Bool italic ) override
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -192,31 +192,31 @@ namespace
italic ? rendering::PanoseLetterForm::OBLIQUE_CONTACT : rendering::PanoseLetterForm::ANYTHING;
}
- virtual void SAL_CALL setPenColor( ::sal_Int32 nsRgbaColor ) throw (uno::RuntimeException, std::exception) override
+ virtual void SAL_CALL setPenColor( ::sal_Int32 nsRgbaColor ) override
{
::osl::MutexGuard aGuard( m_aMutex );
*(maRenderState.m_aPenColor) = nsRgbaColor;
}
- virtual void SAL_CALL setFillColor( ::sal_Int32 nsRgbaColor ) throw (uno::RuntimeException, std::exception) override
+ virtual void SAL_CALL setFillColor( ::sal_Int32 nsRgbaColor ) override
{
::osl::MutexGuard aGuard( m_aMutex );
*(maRenderState.m_aFillColor) = nsRgbaColor;
}
- virtual void SAL_CALL setRectClip( const geometry::RealRectangle2D& aRect ) throw (uno::RuntimeException, std::exception) override
+ virtual void SAL_CALL setRectClip( const geometry::RealRectangle2D& aRect ) override
{
::osl::MutexGuard aGuard( m_aMutex );
*(maRenderState.m_aRectClip) = aRect;
}
- virtual void SAL_CALL setTransformation( const geometry::AffineMatrix2D& aTransform ) throw (uno::RuntimeException, std::exception) override
+ virtual void SAL_CALL setTransformation( const geometry::AffineMatrix2D& aTransform ) override
{
::osl::MutexGuard aGuard( m_aMutex );
maRenderState.m_aTransformation = aTransform;
}
- virtual void SAL_CALL drawPixel( const geometry::RealPoint2D& aPoint ) throw (uno::RuntimeException, std::exception) override
+ virtual void SAL_CALL drawPixel( const geometry::RealPoint2D& aPoint ) override
{
::osl::MutexGuard aGuard( m_aMutex );
mxCanvas->drawPoint(aPoint,
@@ -225,7 +225,7 @@ namespace
}
virtual void SAL_CALL drawLine( const geometry::RealPoint2D& aStartPoint,
- const geometry::RealPoint2D& aEndPoint ) throw (uno::RuntimeException, std::exception) override
+ const geometry::RealPoint2D& aEndPoint ) override
{
::osl::MutexGuard aGuard( m_aMutex );
mxCanvas->drawLine(aStartPoint,
@@ -234,7 +234,7 @@ namespace
createStrokingRenderState());
}
- virtual void SAL_CALL drawRect( const geometry::RealRectangle2D& aRect ) throw (uno::RuntimeException, std::exception) override
+ virtual void SAL_CALL drawRect( const geometry::RealRectangle2D& aRect ) override
{
::osl::MutexGuard aGuard( m_aMutex );
uno::Reference< rendering::XPolyPolygon2D > xPoly(
@@ -251,8 +251,7 @@ namespace
createStrokingRenderState());
}
- virtual void SAL_CALL drawPolyPolygon( const uno::Reference< rendering::XPolyPolygon2D >& xPolyPolygon )
- throw (uno::RuntimeException, std::exception) override
+ virtual void SAL_CALL drawPolyPolygon( const uno::Reference< rendering::XPolyPolygon2D >& xPolyPolygon ) override
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -268,7 +267,7 @@ namespace
virtual void SAL_CALL drawText( const rendering::StringContext& aText,
const geometry::RealPoint2D& aOutPos,
- ::sal_Int8 nTextDirection ) throw (uno::RuntimeException, std::exception) override
+ ::sal_Int8 nTextDirection ) override
{
::osl::MutexGuard aGuard( m_aMutex );
const basegfx::B2DHomMatrix offsetTransform(basegfx::tools::createTranslateB2DHomMatrix(aOutPos.X,aOutPos.Y));
@@ -283,8 +282,7 @@ namespace
}
virtual void SAL_CALL drawBitmap( const uno::Reference< rendering::XBitmap >& xBitmap,
- const geometry::RealPoint2D& aLeftTop )
- throw (uno::RuntimeException, std::exception) override
+ const geometry::RealPoint2D& aLeftTop ) override
{
::osl::MutexGuard aGuard( m_aMutex );
const basegfx::B2DHomMatrix offsetTransform(basegfx::tools::createTranslateB2DHomMatrix(aLeftTop.X,aLeftTop.Y));
@@ -294,61 +292,61 @@ namespace
mxCanvas->drawBitmap(xBitmap,maViewState,aRenderState);
}
- virtual uno::Reference< rendering::XGraphicDevice > SAL_CALL getDevice( ) throw (uno::RuntimeException, std::exception) override
+ virtual uno::Reference< rendering::XGraphicDevice > SAL_CALL getDevice( ) override
{
::osl::MutexGuard aGuard( m_aMutex );
return mxCanvas->getDevice();
}
- virtual uno::Reference< rendering::XCanvas > SAL_CALL getCanvas( ) throw (uno::RuntimeException, std::exception) override
+ virtual uno::Reference< rendering::XCanvas > SAL_CALL getCanvas( ) override
{
::osl::MutexGuard aGuard( m_aMutex );
return mxCanvas;
}
- virtual rendering::FontMetrics SAL_CALL getFontMetrics( ) throw (uno::RuntimeException, std::exception) override
+ virtual rendering::FontMetrics SAL_CALL getFontMetrics( ) override
{
::osl::MutexGuard aGuard( m_aMutex );
return maFont.getOutValue()->getFontMetrics();
}
- virtual uno::Reference< rendering::XCanvasFont > SAL_CALL getCurrentFont( ) throw (uno::RuntimeException, std::exception) override
+ virtual uno::Reference< rendering::XCanvasFont > SAL_CALL getCurrentFont( ) override
{
::osl::MutexGuard aGuard( m_aMutex );
return maFont.getOutValue();
}
- virtual ::sal_Int32 SAL_CALL getCurrentPenColor( ) throw (uno::RuntimeException, std::exception) override
+ virtual ::sal_Int32 SAL_CALL getCurrentPenColor( ) override
{
::osl::MutexGuard aGuard( m_aMutex );
return maRenderState.m_aPenColor.getInValue();
}
- virtual ::sal_Int32 SAL_CALL getCurrentFillColor( ) throw (uno::RuntimeException, std::exception) override
+ virtual ::sal_Int32 SAL_CALL getCurrentFillColor( ) override
{
::osl::MutexGuard aGuard( m_aMutex );
return maRenderState.m_aFillColor.getInValue();
}
- virtual geometry::RealRectangle2D SAL_CALL getCurrentClipRect( ) throw (uno::RuntimeException, std::exception) override
+ virtual geometry::RealRectangle2D SAL_CALL getCurrentClipRect( ) override
{
::osl::MutexGuard aGuard( m_aMutex );
return maRenderState.m_aRectClip.getInValue();
}
- virtual geometry::AffineMatrix2D SAL_CALL getCurrentTransformation( ) throw (uno::RuntimeException, std::exception) override
+ virtual geometry::AffineMatrix2D SAL_CALL getCurrentTransformation( ) override
{
::osl::MutexGuard aGuard( m_aMutex );
return maRenderState.m_aTransformation;
}
- virtual rendering::ViewState SAL_CALL getCurrentViewState( ) throw (uno::RuntimeException, std::exception) override
+ virtual rendering::ViewState SAL_CALL getCurrentViewState( ) override
{
::osl::MutexGuard aGuard( m_aMutex );
return maViewState;
}
- virtual rendering::RenderState SAL_CALL getCurrentRenderState( sal_Bool bUseFillColor ) throw (uno::RuntimeException, std::exception) override
+ virtual rendering::RenderState SAL_CALL getCurrentRenderState( sal_Bool bUseFillColor ) override
{
::osl::MutexGuard aGuard( m_aMutex );
if( bUseFillColor )