summaryrefslogtreecommitdiff
path: root/chart2/source/view/axes
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 /chart2/source/view/axes
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 'chart2/source/view/axes')
-rw-r--r--chart2/source/view/axes/DateScaling.cxx12
-rw-r--r--chart2/source/view/axes/DateScaling.hxx34
-rw-r--r--chart2/source/view/axes/VAxisBase.cxx1
-rw-r--r--chart2/source/view/axes/VAxisBase.hxx3
-rw-r--r--chart2/source/view/axes/VAxisOrGridBase.cxx1
-rw-r--r--chart2/source/view/axes/VAxisOrGridBase.hxx3
-rw-r--r--chart2/source/view/axes/VCartesianCoordinateSystem.cxx3
-rw-r--r--chart2/source/view/axes/VCoordinateSystem.cxx1
-rw-r--r--chart2/source/view/axes/VPolarRadiusAxis.cxx2
-rw-r--r--chart2/source/view/axes/VPolarRadiusAxis.hxx5
10 files changed, 17 insertions, 48 deletions
diff --git a/chart2/source/view/axes/DateScaling.cxx b/chart2/source/view/axes/DateScaling.cxx
index 2dd8e3427835..0a83e792b818 100644
--- a/chart2/source/view/axes/DateScaling.cxx
+++ b/chart2/source/view/axes/DateScaling.cxx
@@ -52,7 +52,6 @@ DateScaling::~DateScaling()
}
double SAL_CALL DateScaling::doScaling( double value )
- throw (uno::RuntimeException, std::exception)
{
double fResult(value);
if( ::rtl::math::isNan( value ) || ::rtl::math::isInf( value ) )
@@ -93,31 +92,26 @@ double SAL_CALL DateScaling::doScaling( double value )
}
uno::Reference< XScaling > SAL_CALL DateScaling::getInverseScaling()
- throw (uno::RuntimeException, std::exception)
{
return new InverseDateScaling( m_aNullDate, m_nTimeUnit, m_bShifted );
}
OUString SAL_CALL DateScaling::getServiceName()
- throw (uno::RuntimeException, std::exception)
{
return OUString(lcl_aServiceName_DateScaling);
}
OUString SAL_CALL DateScaling::getImplementationName()
- throw( css::uno::RuntimeException, std::exception )
{
return OUString(lcl_aServiceName_DateScaling);
}
sal_Bool SAL_CALL DateScaling::supportsService( const OUString& rServiceName )
- throw( css::uno::RuntimeException, std::exception )
{
return cppu::supportsService(this, rServiceName);
}
css::uno::Sequence< OUString > SAL_CALL DateScaling::getSupportedServiceNames()
- throw( css::uno::RuntimeException, std::exception )
{
return { lcl_aServiceName_DateScaling };
}
@@ -134,7 +128,6 @@ InverseDateScaling::~InverseDateScaling()
}
double SAL_CALL InverseDateScaling::doScaling( double value )
- throw (uno::RuntimeException, std::exception)
{
double fResult(value);
if( ::rtl::math::isNan( value ) || ::rtl::math::isInf( value ) )
@@ -182,31 +175,26 @@ double SAL_CALL InverseDateScaling::doScaling( double value )
}
uno::Reference< XScaling > SAL_CALL InverseDateScaling::getInverseScaling()
- throw (uno::RuntimeException, std::exception)
{
return new DateScaling( m_aNullDate, m_nTimeUnit, m_bShifted );
}
OUString SAL_CALL InverseDateScaling::getServiceName()
- throw (uno::RuntimeException, std::exception)
{
return OUString(lcl_aServiceName_InverseDateScaling);
}
OUString SAL_CALL InverseDateScaling::getImplementationName()
- throw( css::uno::RuntimeException, std::exception )
{
return OUString(lcl_aServiceName_InverseDateScaling);
}
sal_Bool SAL_CALL InverseDateScaling::supportsService( const OUString& rServiceName )
- throw( css::uno::RuntimeException, std::exception )
{
return cppu::supportsService(this, rServiceName);
}
css::uno::Sequence< OUString > SAL_CALL InverseDateScaling::getSupportedServiceNames()
- throw( css::uno::RuntimeException, std::exception )
{
return { lcl_aServiceName_InverseDateScaling };
}
diff --git a/chart2/source/view/axes/DateScaling.hxx b/chart2/source/view/axes/DateScaling.hxx
index 3ee7f22a8568..acbb5409e9ef 100644
--- a/chart2/source/view/axes/DateScaling.hxx
+++ b/chart2/source/view/axes/DateScaling.hxx
@@ -41,24 +41,19 @@ public:
virtual ~DateScaling() override;
/// declare XServiceInfo methods
- virtual OUString SAL_CALL getImplementationName()
- throw( css::uno::RuntimeException, std::exception ) override;
- virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
- throw( css::uno::RuntimeException, std::exception ) override;
- virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
- throw( css::uno::RuntimeException, std::exception ) override;
+ virtual OUString SAL_CALL getImplementationName() override;
+ virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
// ____ XScaling ____
- virtual double SAL_CALL doScaling( double value )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual double SAL_CALL doScaling( double value ) override;
virtual css::uno::Reference<
css::chart2::XScaling > SAL_CALL
- getInverseScaling() throw (css::uno::RuntimeException, std::exception) override;
+ getInverseScaling() override;
// ____ XServiceName ____
- virtual OUString SAL_CALL getServiceName()
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getServiceName() override;
private:
const Date m_aNullDate;
@@ -78,23 +73,18 @@ public:
virtual ~InverseDateScaling() override;
/// declare XServiceInfo methods
- virtual OUString SAL_CALL getImplementationName()
- throw( css::uno::RuntimeException, std::exception ) override;
- virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
- throw( css::uno::RuntimeException, std::exception ) override;
- virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
- throw( css::uno::RuntimeException, std::exception ) override;
+ virtual OUString SAL_CALL getImplementationName() override;
+ virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
// ____ XScaling ____
- virtual double SAL_CALL doScaling( double value )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual double SAL_CALL doScaling( double value ) override;
virtual css::uno::Reference< css::chart2::XScaling > SAL_CALL
- getInverseScaling() throw (css::uno::RuntimeException, std::exception) override;
+ getInverseScaling() override;
// ____ XServiceName ____
- virtual OUString SAL_CALL getServiceName()
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getServiceName() override;
private:
const Date m_aNullDate;
diff --git a/chart2/source/view/axes/VAxisBase.cxx b/chart2/source/view/axes/VAxisBase.cxx
index e88785840de4..886b67e9edc2 100644
--- a/chart2/source/view/axes/VAxisBase.cxx
+++ b/chart2/source/view/axes/VAxisBase.cxx
@@ -144,7 +144,6 @@ bool VAxisBase::isAnythingToDraw()
void VAxisBase::setExplicitScaleAndIncrement(
const ExplicitScaleData& rScale
, const ExplicitIncrementData& rIncrement )
- throw (uno::RuntimeException)
{
m_bReCreateAllTickInfos = true;
m_aScale = rScale;
diff --git a/chart2/source/view/axes/VAxisBase.hxx b/chart2/source/view/axes/VAxisBase.hxx
index 3599972e12b1..3f8f71cd8995 100644
--- a/chart2/source/view/axes/VAxisBase.hxx
+++ b/chart2/source/view/axes/VAxisBase.hxx
@@ -55,8 +55,7 @@ public:
virtual void setExplicitScaleAndIncrement(
const ExplicitScaleData& rScale
- , const ExplicitIncrementData& rIncrement )
- throw (css::uno::RuntimeException) override;
+ , const ExplicitIncrementData& rIncrement ) override;
virtual sal_Int32 estimateMaximumAutoMainIncrementCount();
virtual void createAllTickInfos( TickInfoArraysType& rAllTickInfos );
diff --git a/chart2/source/view/axes/VAxisOrGridBase.cxx b/chart2/source/view/axes/VAxisOrGridBase.cxx
index be5eec08d880..52ddc16fdbcf 100644
--- a/chart2/source/view/axes/VAxisOrGridBase.cxx
+++ b/chart2/source/view/axes/VAxisOrGridBase.cxx
@@ -43,7 +43,6 @@ VAxisOrGridBase::~VAxisOrGridBase()
void VAxisOrGridBase::setExplicitScaleAndIncrement(
const ExplicitScaleData& rScale
, const ExplicitIncrementData& rIncrement )
- throw (uno::RuntimeException)
{
m_aScale = rScale;
m_aIncrement = rIncrement;
diff --git a/chart2/source/view/axes/VAxisOrGridBase.hxx b/chart2/source/view/axes/VAxisOrGridBase.hxx
index be81876a06de..44cd5e772a4f 100644
--- a/chart2/source/view/axes/VAxisOrGridBase.hxx
+++ b/chart2/source/view/axes/VAxisOrGridBase.hxx
@@ -43,8 +43,7 @@ public:
/// @throws css::uno::RuntimeException
virtual void setExplicitScaleAndIncrement(
const ExplicitScaleData& rScale
- , const ExplicitIncrementData& rIncrement )
- throw (css::uno::RuntimeException);
+ , const ExplicitIncrementData& rIncrement );
void set3DWallPositions( CuboidPlanePosition eLeftWallPos, CuboidPlanePosition eBackWallPos, CuboidPlanePosition eBottomPos );
virtual TickFactory* createTickFactory();
diff --git a/chart2/source/view/axes/VCartesianCoordinateSystem.cxx b/chart2/source/view/axes/VCartesianCoordinateSystem.cxx
index 5aceed61248b..934d17046ea3 100644
--- a/chart2/source/view/axes/VCartesianCoordinateSystem.cxx
+++ b/chart2/source/view/axes/VCartesianCoordinateSystem.cxx
@@ -43,8 +43,7 @@ public:
}
//XTextualDataSequence
- virtual uno::Sequence< OUString > SAL_CALL getTextualData()
- throw ( uno::RuntimeException, std::exception) override
+ virtual uno::Sequence< OUString > SAL_CALL getTextualData() override
{
return m_aTextSequence;
}
diff --git a/chart2/source/view/axes/VCoordinateSystem.cxx b/chart2/source/view/axes/VCoordinateSystem.cxx
index 7cff69374e75..d9440207c956 100644
--- a/chart2/source/view/axes/VCoordinateSystem.cxx
+++ b/chart2/source/view/axes/VCoordinateSystem.cxx
@@ -99,7 +99,6 @@ void VCoordinateSystem::initPlottingTargets( const Reference< drawing::XShapes
, const Reference< drawing::XShapes >& xFinalTarget
, const Reference< lang::XMultiServiceFactory >& xShapeFactory
, Reference< drawing::XShapes >& xLogicTargetForSeriesBehindAxis )
- throw (uno::RuntimeException, std::exception)
{
OSL_PRECOND(xLogicTarget.is()&&xFinalTarget.is()&&xShapeFactory.is(),"no proper initialization parameters");
//is only allowed to be called once
diff --git a/chart2/source/view/axes/VPolarRadiusAxis.cxx b/chart2/source/view/axes/VPolarRadiusAxis.cxx
index a3b1b50c4123..5ebb65809dab 100644
--- a/chart2/source/view/axes/VPolarRadiusAxis.cxx
+++ b/chart2/source/view/axes/VPolarRadiusAxis.cxx
@@ -61,7 +61,6 @@ void VPolarRadiusAxis::setTransformationSceneToScreen( const drawing::HomogenMat
void VPolarRadiusAxis::setExplicitScaleAndIncrement(
const ExplicitScaleData& rScale
, const ExplicitIncrementData& rIncrement )
- throw (uno::RuntimeException)
{
VPolarAxis::setExplicitScaleAndIncrement( rScale, rIncrement );
m_apAxisWithLabels->setExplicitScaleAndIncrement( rScale, rIncrement );
@@ -71,7 +70,6 @@ void VPolarRadiusAxis::initPlotter( const uno::Reference< drawing::XShapes >& x
, const uno::Reference< drawing::XShapes >& xFinalTarget
, const uno::Reference< lang::XMultiServiceFactory >& xShapeFactory
, const OUString& rCID )
- throw (uno::RuntimeException)
{
VPolarAxis::initPlotter( xLogicTarget, xFinalTarget, xShapeFactory, rCID );
m_apAxisWithLabels->initPlotter( xLogicTarget, xFinalTarget, xShapeFactory, rCID );
diff --git a/chart2/source/view/axes/VPolarRadiusAxis.hxx b/chart2/source/view/axes/VPolarRadiusAxis.hxx
index b43c2b256cc3..e4f2d85da738 100644
--- a/chart2/source/view/axes/VPolarRadiusAxis.hxx
+++ b/chart2/source/view/axes/VPolarRadiusAxis.hxx
@@ -43,7 +43,7 @@ public:
, const css::uno::Reference< css::drawing::XShapes >& xFinalTarget
, const css::uno::Reference< css::lang::XMultiServiceFactory >& xFactory
, const OUString& rCID
- ) throw (css::uno::RuntimeException ) override;
+ ) override;
virtual void setTransformationSceneToScreen( const css::drawing::HomogenMatrix& rMatrix ) override;
@@ -51,8 +51,7 @@ public:
virtual void setExplicitScaleAndIncrement(
const ExplicitScaleData& rScale
- , const ExplicitIncrementData& rIncrement )
- throw (css::uno::RuntimeException) override;
+ , const ExplicitIncrementData& rIncrement ) override;
virtual void initAxisLabelProperties(
const css::awt::Size& rFontReferenceSize