summaryrefslogtreecommitdiff
path: root/drawinglayer
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 /drawinglayer
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 'drawinglayer')
-rw-r--r--drawinglayer/source/drawinglayeruno/xprimitive2drenderer.cxx16
-rw-r--r--drawinglayer/source/primitive2d/baseprimitive2d.cxx5
-rw-r--r--drawinglayer/source/primitive2d/bitmapprimitive2d.cxx1
-rw-r--r--drawinglayer/source/primitive2d/groupprimitive2d.cxx1
-rw-r--r--drawinglayer/source/primitive2d/patternfillprimitive2d.cxx1
-rw-r--r--drawinglayer/source/primitive3d/baseprimitive3d.cxx4
6 files changed, 12 insertions, 16 deletions
diff --git a/drawinglayer/source/drawinglayeruno/xprimitive2drenderer.cxx b/drawinglayer/source/drawinglayeruno/xprimitive2drenderer.cxx
index 7cc3edbb0d7e..109d0b07b970 100644
--- a/drawinglayer/source/drawinglayeruno/xprimitive2drenderer.cxx
+++ b/drawinglayer/source/drawinglayeruno/xprimitive2drenderer.cxx
@@ -63,12 +63,12 @@ namespace drawinglayer
::sal_uInt32 DPI_X,
::sal_uInt32 DPI_Y,
const css::geometry::RealRectangle2D& Range,
- ::sal_uInt32 MaximumQuadraticPixels) throw (uno::RuntimeException, std::exception) override;
+ ::sal_uInt32 MaximumQuadraticPixels) override;
// XServiceInfo
- virtual OUString SAL_CALL getImplementationName() throw(uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsService(const OUString&) throw(uno::RuntimeException, std::exception) override;
- virtual uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw(uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getImplementationName() override;
+ virtual sal_Bool SAL_CALL supportsService(const OUString&) override;
+ virtual uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
};
} // end of namespace unorenderer
} // end of namespace drawinglayer
@@ -112,7 +112,7 @@ namespace drawinglayer
::sal_uInt32 DPI_X,
::sal_uInt32 DPI_Y,
const css::geometry::RealRectangle2D& Range,
- ::sal_uInt32 MaximumQuadraticPixels) throw (uno::RuntimeException, std::exception)
+ ::sal_uInt32 MaximumQuadraticPixels)
{
uno::Reference< rendering::XBitmap > XBitmap;
@@ -181,17 +181,17 @@ namespace drawinglayer
return XBitmap;
}
- OUString SAL_CALL XPrimitive2DRenderer::getImplementationName() throw(uno::RuntimeException, std::exception)
+ OUString SAL_CALL XPrimitive2DRenderer::getImplementationName()
{
return(XPrimitive2DRenderer_getImplementationName());
}
- sal_Bool SAL_CALL XPrimitive2DRenderer::supportsService(const OUString& rServiceName) throw(uno::RuntimeException, std::exception)
+ sal_Bool SAL_CALL XPrimitive2DRenderer::supportsService(const OUString& rServiceName)
{
return cppu::supportsService(this, rServiceName);
}
- uno::Sequence< OUString > SAL_CALL XPrimitive2DRenderer::getSupportedServiceNames() throw(uno::RuntimeException, std::exception)
+ uno::Sequence< OUString > SAL_CALL XPrimitive2DRenderer::getSupportedServiceNames()
{
return XPrimitive2DRenderer_getSupportedServiceNames();
}
diff --git a/drawinglayer/source/primitive2d/baseprimitive2d.cxx b/drawinglayer/source/primitive2d/baseprimitive2d.cxx
index 31f495c22a3b..02baa443667a 100644
--- a/drawinglayer/source/primitive2d/baseprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/baseprimitive2d.cxx
@@ -80,7 +80,7 @@ namespace drawinglayer
{
}
- Primitive2DSequence SAL_CALL BasePrimitive2D::getDecomposition( const uno::Sequence< beans::PropertyValue >& rViewParameters ) throw ( uno::RuntimeException, std::exception )
+ Primitive2DSequence SAL_CALL BasePrimitive2D::getDecomposition( const uno::Sequence< beans::PropertyValue >& rViewParameters )
{
const geometry::ViewInformation2D aViewInformation(rViewParameters);
Primitive2DContainer aContainer;
@@ -88,14 +88,13 @@ namespace drawinglayer
return comphelper::containerToSequence(aContainer);
}
- css::geometry::RealRectangle2D SAL_CALL BasePrimitive2D::getRange( const uno::Sequence< beans::PropertyValue >& rViewParameters ) throw ( uno::RuntimeException, std::exception )
+ css::geometry::RealRectangle2D SAL_CALL BasePrimitive2D::getRange( const uno::Sequence< beans::PropertyValue >& rViewParameters )
{
const geometry::ViewInformation2D aViewInformation(rViewParameters);
return basegfx::unotools::rectangle2DFromB2DRectangle(getB2DRange(aViewInformation));
}
sal_Int64 SAL_CALL BasePrimitive2D::estimateUsage()
- throw (css::uno::RuntimeException)
{
return 0; // for now ignore the objects themselves
}
diff --git a/drawinglayer/source/primitive2d/bitmapprimitive2d.cxx b/drawinglayer/source/primitive2d/bitmapprimitive2d.cxx
index db75ba5dc911..154791ab6e51 100644
--- a/drawinglayer/source/primitive2d/bitmapprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/bitmapprimitive2d.cxx
@@ -59,7 +59,6 @@ namespace drawinglayer
}
sal_Int64 SAL_CALL BitmapPrimitive2D::estimateUsage()
- throw (css::uno::RuntimeException)
{
return getBitmapEx().GetSizeBytes();
}
diff --git a/drawinglayer/source/primitive2d/groupprimitive2d.cxx b/drawinglayer/source/primitive2d/groupprimitive2d.cxx
index 1b86f15caae0..5a646ec3ce39 100644
--- a/drawinglayer/source/primitive2d/groupprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/groupprimitive2d.cxx
@@ -57,7 +57,6 @@ namespace drawinglayer
}
sal_Int64 SAL_CALL GroupPrimitive2D::estimateUsage()
- throw (css::uno::RuntimeException)
{
size_t nRet(0);
for (auto& it : getChildren())
diff --git a/drawinglayer/source/primitive2d/patternfillprimitive2d.cxx b/drawinglayer/source/primitive2d/patternfillprimitive2d.cxx
index 7484a1e00d32..cf07d115fa07 100644
--- a/drawinglayer/source/primitive2d/patternfillprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/patternfillprimitive2d.cxx
@@ -311,7 +311,6 @@ namespace drawinglayer
}
sal_Int64 SAL_CALL PatternFillPrimitive2D::estimateUsage()
- throw (css::uno::RuntimeException)
{
size_t nRet(0);
for (auto& it : getChildren())
diff --git a/drawinglayer/source/primitive3d/baseprimitive3d.cxx b/drawinglayer/source/primitive3d/baseprimitive3d.cxx
index c004cbaaa7a9..7180e73e992d 100644
--- a/drawinglayer/source/primitive3d/baseprimitive3d.cxx
+++ b/drawinglayer/source/primitive3d/baseprimitive3d.cxx
@@ -54,13 +54,13 @@ namespace drawinglayer
return Primitive3DContainer();
}
- Primitive3DSequence SAL_CALL BasePrimitive3D::getDecomposition( const uno::Sequence< beans::PropertyValue >& rViewParameters ) throw ( uno::RuntimeException, std::exception )
+ Primitive3DSequence SAL_CALL BasePrimitive3D::getDecomposition( const uno::Sequence< beans::PropertyValue >& rViewParameters )
{
const geometry::ViewInformation3D aViewInformation(rViewParameters);
return comphelper::containerToSequence(get3DDecomposition(aViewInformation));
}
- css::geometry::RealRectangle3D SAL_CALL BasePrimitive3D::getRange( const uno::Sequence< beans::PropertyValue >& rViewParameters ) throw ( uno::RuntimeException, std::exception )
+ css::geometry::RealRectangle3D SAL_CALL BasePrimitive3D::getRange( const uno::Sequence< beans::PropertyValue >& rViewParameters )
{
const geometry::ViewInformation3D aViewInformation(rViewParameters);
return basegfx::unotools::rectangle3DFromB3DRectangle(getB3DRange(aViewInformation));