summaryrefslogtreecommitdiffstats
path: root/chart2/source
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source')
-rw-r--r--chart2/source/controller/chartapiwrapper/AxisWrapper.cxx2
-rw-r--r--chart2/source/controller/chartapiwrapper/DataSeriesPointWrapper.cxx3
-rw-r--r--chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx8
-rw-r--r--chart2/source/controller/chartapiwrapper/GridWrapper.cxx2
-rw-r--r--chart2/source/controller/chartapiwrapper/MinMaxLineWrapper.cxx2
-rw-r--r--chart2/source/controller/chartapiwrapper/UpDownBarWrapper.cxx2
-rw-r--r--chart2/source/controller/chartapiwrapper/WrappedAutomaticPositionProperties.cxx2
-rw-r--r--chart2/source/controller/chartapiwrapper/WrappedScaleTextProperties.cxx2
-rw-r--r--chart2/source/controller/chartapiwrapper/WrappedStockProperties.cxx2
-rw-r--r--chart2/source/controller/chartapiwrapper/WrappedSymbolProperties.cxx4
-rw-r--r--chart2/source/controller/dialogs/ChartTypeDialogController.cxx4
-rw-r--r--chart2/source/controller/dialogs/DialogModel.cxx18
-rw-r--r--chart2/source/controller/dialogs/ObjectNameProvider.cxx2
-rw-r--r--chart2/source/controller/dialogs/RangeSelectionHelper.cxx6
-rw-r--r--chart2/source/controller/dialogs/res_ErrorBar.cxx2
-rw-r--r--chart2/source/controller/dialogs/res_LegendPosition.cxx4
-rw-r--r--chart2/source/controller/dialogs/tp_ChartType.cxx2
-rw-r--r--chart2/source/controller/dialogs/tp_DataSource.cxx4
-rw-r--r--chart2/source/controller/drawinglayer/DrawViewWrapper.cxx2
-rw-r--r--chart2/source/controller/drawinglayer/ViewElementListProvider.cxx2
-rw-r--r--chart2/source/controller/itemsetwrapper/CharacterPropertyItemConverter.cxx4
-rw-r--r--chart2/source/controller/itemsetwrapper/DataPointItemConverter.cxx8
-rw-r--r--chart2/source/controller/itemsetwrapper/ErrorBarItemConverter.cxx4
-rw-r--r--chart2/source/controller/itemsetwrapper/GraphicPropertyItemConverter.cxx4
-rw-r--r--chart2/source/controller/itemsetwrapper/ItemConverter.cxx11
-rw-r--r--chart2/source/controller/itemsetwrapper/LegendItemConverter.cxx2
-rw-r--r--chart2/source/controller/itemsetwrapper/SeriesOptionsItemConverter.cxx4
-rw-r--r--chart2/source/controller/itemsetwrapper/StatisticsItemConverter.cxx6
-rw-r--r--chart2/source/controller/main/ChartController.cxx8
-rw-r--r--chart2/source/controller/main/ChartController_Insert.cxx28
-rw-r--r--chart2/source/controller/main/ChartController_Position.cxx2
-rw-r--r--chart2/source/controller/main/ChartController_Properties.cxx6
-rw-r--r--chart2/source/controller/main/ChartController_Tools.cxx2
-rw-r--r--chart2/source/controller/main/ChartController_Window.cxx4
-rw-r--r--chart2/source/controller/main/ChartFrameloader.cxx2
-rw-r--r--chart2/source/controller/main/ChartRenderer.cxx2
-rw-r--r--chart2/source/controller/main/ControllerCommandDispatch.cxx4
-rw-r--r--chart2/source/controller/main/ObjectHierarchy.cxx4
-rw-r--r--chart2/source/controller/main/ShapeController.cxx4
-rw-r--r--chart2/source/model/main/ChartModel_Persistence.cxx16
-rw-r--r--chart2/source/model/template/AreaChartTypeTemplate.cxx4
-rw-r--r--chart2/source/model/template/BarChartTypeTemplate.cxx4
-rw-r--r--chart2/source/model/template/BubbleChartTypeTemplate.cxx4
-rw-r--r--chart2/source/model/template/BubbleDataInterpreter.cxx6
-rw-r--r--chart2/source/model/template/ChartTypeManager.cxx2
-rw-r--r--chart2/source/model/template/ChartTypeTemplate.cxx10
-rw-r--r--chart2/source/model/template/ColumnLineChartTypeTemplate.cxx6
-rw-r--r--chart2/source/model/template/DataInterpreter.cxx12
-rw-r--r--chart2/source/model/template/LineChartTypeTemplate.cxx10
-rw-r--r--chart2/source/model/template/NetChartTypeTemplate.cxx6
-rw-r--r--chart2/source/model/template/PieChartTypeTemplate.cxx12
-rw-r--r--chart2/source/model/template/ScatterChartTypeTemplate.cxx10
-rw-r--r--chart2/source/model/template/StockChartTypeTemplate.cxx8
-rw-r--r--chart2/source/model/template/StockDataInterpreter.cxx4
-rw-r--r--chart2/source/model/template/XYDataInterpreter.cxx6
-rw-r--r--chart2/source/tools/AxisHelper.cxx8
-rw-r--r--chart2/source/tools/ChartModelHelper.cxx4
-rw-r--r--chart2/source/tools/ChartViewHelper.cxx2
-rw-r--r--chart2/source/tools/DataSeriesHelper.cxx21
-rw-r--r--chart2/source/tools/DiagramHelper.cxx38
-rw-r--r--chart2/source/tools/FormattedStringHelper.cxx2
-rw-r--r--chart2/source/tools/LegendHelper.cxx2
-rw-r--r--chart2/source/tools/LifeTime.cxx5
-rw-r--r--chart2/source/tools/OPropertySet.cxx4
-rw-r--r--chart2/source/tools/ObjectIdentifier.cxx4
-rw-r--r--chart2/source/tools/RegressionCurveHelper.cxx16
-rw-r--r--chart2/source/tools/ThreeDHelper.cxx12
-rw-r--r--chart2/source/tools/TitleHelper.cxx4
-rw-r--r--chart2/source/tools/WrappedDefaultProperty.cxx2
-rw-r--r--chart2/source/tools/WrappedProperty.cxx2
-rw-r--r--chart2/source/tools/WrappedPropertySet.cxx26
-rw-r--r--chart2/source/view/axes/VAxisProperties.cxx6
-rw-r--r--chart2/source/view/axes/VCartesianAxis.cxx2
-rw-r--r--chart2/source/view/axes/VCoordinateSystem.cxx2
-rw-r--r--chart2/source/view/charttypes/BarChart.cxx6
-rw-r--r--chart2/source/view/charttypes/CandleStickChart.cxx2
-rw-r--r--chart2/source/view/charttypes/PieChart.cxx6
-rw-r--r--chart2/source/view/charttypes/VSeriesPlotter.cxx10
-rw-r--r--chart2/source/view/diagram/VDiagram.cxx6
-rw-r--r--chart2/source/view/main/ChartView.cxx14
-rw-r--r--chart2/source/view/main/DrawModelWrapper.cxx2
-rw-r--r--chart2/source/view/main/PropertyMapper.cxx8
-rw-r--r--chart2/source/view/main/ShapeFactory.cxx42
-rw-r--r--chart2/source/view/main/VDataSeries.cxx12
-rw-r--r--chart2/source/view/main/VLegend.cxx10
-rw-r--r--chart2/source/view/main/VLegendSymbolFactory.cxx2
-rw-r--r--chart2/source/view/main/VLineProperties.cxx4
-rw-r--r--chart2/source/view/main/VTitle.cxx8
88 files changed, 297 insertions, 301 deletions
diff --git a/chart2/source/controller/chartapiwrapper/AxisWrapper.cxx b/chart2/source/controller/chartapiwrapper/AxisWrapper.cxx
index b3202ff6d91d..ce1021daef20 100644
--- a/chart2/source/controller/chartapiwrapper/AxisWrapper.cxx
+++ b/chart2/source/controller/chartapiwrapper/AxisWrapper.cxx
@@ -626,7 +626,7 @@ Reference< chart2::XAxis > AxisWrapper::getAxis()
xProp->setPropertyValue( C2U( "Show" ), uno::makeAny( sal_False ) );
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/controller/chartapiwrapper/DataSeriesPointWrapper.cxx b/chart2/source/controller/chartapiwrapper/DataSeriesPointWrapper.cxx
index b54be6b86a27..60a76e1bd43b 100644
--- a/chart2/source/controller/chartapiwrapper/DataSeriesPointWrapper.cxx
+++ b/chart2/source/controller/chartapiwrapper/DataSeriesPointWrapper.cxx
@@ -693,9 +693,8 @@ Any SAL_CALL DataSeriesPointWrapper::getPropertyDefault( const ::rtl::OUString&
}
}
}
- catch( beans::UnknownPropertyException& ex )
+ catch( const beans::UnknownPropertyException& )
{
- (void)(ex);
aRet = WrappedPropertySet::getPropertyDefault( rPropertyName );
}
return aRet;
diff --git a/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx b/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx
index 2f1bcfea9276..46bb9a1f416d 100644
--- a/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx
+++ b/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx
@@ -1631,7 +1631,7 @@ bool WrappedNumberOfLinesProperty::detectInnerValue( uno::Any& rInnerValue ) con
xProp->getPropertyValue( m_aOuterName ) >>= nNumberOfLines;
bHasDetectableInnerValue = true;
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -1675,7 +1675,7 @@ void WrappedNumberOfLinesProperty::setPropertyValue( const Any& rOuterValue, con
if( nOldValue == nNewValue )
return;
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -1702,7 +1702,7 @@ void WrappedNumberOfLinesProperty::setPropertyValue( const Any& rOuterValue, con
xProp->setPropertyValue( C2U( "NumberOfLines" ), uno::makeAny(nNewValue) );
xTemplate->changeDiagram( xDiagram );
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -1967,7 +1967,7 @@ void WrappedAutomaticSizeProperty::setPropertyValue( const Any& rOuterValue, con
xInnerPropertySet->setPropertyValue( C2U( "RelativeSize" ), Any() );
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/controller/chartapiwrapper/GridWrapper.cxx b/chart2/source/controller/chartapiwrapper/GridWrapper.cxx
index d7d51aff49f5..4a757df7e4a1 100644
--- a/chart2/source/controller/chartapiwrapper/GridWrapper.cxx
+++ b/chart2/source/controller/chartapiwrapper/GridWrapper.cxx
@@ -168,7 +168,7 @@ Reference< beans::XPropertySet > GridWrapper::getInnerPropertySet()
sal_Int32 nSubGridIndex = bSubGrid ? 0 : -1;
xRet.set( AxisHelper::getGridProperties( xCooSys , nDimensionIndex, MAIN_AXIS_INDEX, nSubGridIndex ) );
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/controller/chartapiwrapper/MinMaxLineWrapper.cxx b/chart2/source/controller/chartapiwrapper/MinMaxLineWrapper.cxx
index 21abdf6d4da8..f81f2ebb8046 100644
--- a/chart2/source/controller/chartapiwrapper/MinMaxLineWrapper.cxx
+++ b/chart2/source/controller/chartapiwrapper/MinMaxLineWrapper.cxx
@@ -295,7 +295,7 @@ void SAL_CALL MinMaxLineWrapper::setPropertyValues( const uno::Sequence< ::rtl::
{
this->setPropertyValue( aPropertyName, rValueSeq[nN] );
}
- catch( beans::UnknownPropertyException& ex )
+ catch( const beans::UnknownPropertyException& ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/controller/chartapiwrapper/UpDownBarWrapper.cxx b/chart2/source/controller/chartapiwrapper/UpDownBarWrapper.cxx
index ade86bf00849..04b78adc921f 100644
--- a/chart2/source/controller/chartapiwrapper/UpDownBarWrapper.cxx
+++ b/chart2/source/controller/chartapiwrapper/UpDownBarWrapper.cxx
@@ -266,7 +266,7 @@ void SAL_CALL UpDownBarWrapper::setPropertyValues( const uno::Sequence< ::rtl::O
{
this->setPropertyValue( aPropertyName, rValueSeq[nN] );
}
- catch( beans::UnknownPropertyException& ex )
+ catch( const beans::UnknownPropertyException& ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/controller/chartapiwrapper/WrappedAutomaticPositionProperties.cxx b/chart2/source/controller/chartapiwrapper/WrappedAutomaticPositionProperties.cxx
index f61574a532f6..c08412fe3bb9 100644
--- a/chart2/source/controller/chartapiwrapper/WrappedAutomaticPositionProperties.cxx
+++ b/chart2/source/controller/chartapiwrapper/WrappedAutomaticPositionProperties.cxx
@@ -86,7 +86,7 @@ void WrappedAutomaticPositionProperty::setPropertyValue( const Any& rOuterValue,
xInnerPropertySet->setPropertyValue( C2U( "RelativePosition" ), Any() );
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/controller/chartapiwrapper/WrappedScaleTextProperties.cxx b/chart2/source/controller/chartapiwrapper/WrappedScaleTextProperties.cxx
index 811faed51339..7dc3da1210ab 100644
--- a/chart2/source/controller/chartapiwrapper/WrappedScaleTextProperties.cxx
+++ b/chart2/source/controller/chartapiwrapper/WrappedScaleTextProperties.cxx
@@ -97,7 +97,7 @@ void WrappedScaleTextProperty::setPropertyValue( const Any& rOuterValue, const R
else
xInnerPropertySet->setPropertyValue( aRefSizeName, Any() );
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/controller/chartapiwrapper/WrappedStockProperties.cxx b/chart2/source/controller/chartapiwrapper/WrappedStockProperties.cxx
index c3faeebd5261..bd1ed551a6fd 100644
--- a/chart2/source/controller/chartapiwrapper/WrappedStockProperties.cxx
+++ b/chart2/source/controller/chartapiwrapper/WrappedStockProperties.cxx
@@ -115,7 +115,7 @@ void WrappedStockProperty::setPropertyValue( const ::com::sun::star::uno::Any& r
ControllerLockGuard aCtrlLockGuard( m_spChart2ModelContact->getChartModel() );
xTemplate->changeDiagram( xDiagram );
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/controller/chartapiwrapper/WrappedSymbolProperties.cxx b/chart2/source/controller/chartapiwrapper/WrappedSymbolProperties.cxx
index 25b87f92971c..c0f17516a590 100644
--- a/chart2/source/controller/chartapiwrapper/WrappedSymbolProperties.cxx
+++ b/chart2/source/controller/chartapiwrapper/WrappedSymbolProperties.cxx
@@ -442,7 +442,7 @@ void lcl_correctSymbolSizeForBitmaps( chart2::Symbol& rSymbol )
bFoundSize = true;
}
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -463,7 +463,7 @@ void lcl_correctSymbolSizeForBitmaps( chart2::Symbol& rSymbol )
}
rSymbol.Size = aSize;
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
diff --git a/chart2/source/controller/dialogs/ChartTypeDialogController.cxx b/chart2/source/controller/dialogs/ChartTypeDialogController.cxx
index cea253b23cf7..1dae363fd956 100644
--- a/chart2/source/controller/dialogs/ChartTypeDialogController.cxx
+++ b/chart2/source/controller/dialogs/ChartTypeDialogController.cxx
@@ -317,7 +317,7 @@ uno::Reference< XChartTypeTemplate > ChartTypeDialogController::getCurrentTempla
{
this->setTemplateProperties( xTemplateProps );
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -1195,7 +1195,7 @@ void CombiColumnLineChartDialogController::fillExtraControls( const ChartTypePar
{
xTemplateProps->getPropertyValue( C2U("NumberOfLines") ) >>= nNumLines;
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/controller/dialogs/DialogModel.cxx b/chart2/source/controller/dialogs/DialogModel.cxx
index 38d619aba554..e0abe6d416a0 100644
--- a/chart2/source/controller/dialogs/DialogModel.cxx
+++ b/chart2/source/controller/dialogs/DialogModel.cxx
@@ -186,7 +186,7 @@ struct lcl_DataSeriesContainerAppend : public
}
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -244,7 +244,7 @@ struct lcl_RolesWithRangeAppend : public
}
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -443,7 +443,7 @@ Reference< data::XDataProvider > DialogModel::getDataProvider() const
}
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -496,7 +496,7 @@ DialogModel::tRolesWithRanges DialogModel::getRolesWithRanges(
}
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -567,7 +567,7 @@ Reference< chart2::XDataSeries > DialogModel::insertSeriesAfter(
ThreeDHelper::setScheme( xDiagram, e3DScheme );
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -595,7 +595,7 @@ Reference< data::XLabeledDataSequence > DialogModel::getCategories() const
xResult.set( DiagramHelper::getCategoriesFromDiagram( xDiagram ));
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -660,7 +660,7 @@ void DialogModel::detectArguments(
Reference< frame::XModel >( m_xChartDocument, uno::UNO_QUERY_THROW ),
rOutRangeString, aSequenceMapping, rOutUseColumns, rOutFirstCellAsLabel, rOutHasCategories );
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -714,7 +714,7 @@ bool DialogModel::setData(
ThreeDHelper::setScheme( xDiagram, e3DScheme );
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
return false;
@@ -811,7 +811,7 @@ void DialogModel::applyInterpretedData(
OSL_ASSERT( (*aDestIt).is());
(*aDestIt)->setDataSeries( *aSrcIt );
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/controller/dialogs/ObjectNameProvider.cxx b/chart2/source/controller/dialogs/ObjectNameProvider.cxx
index 23d599ea063e..ee0e61d3a740 100644
--- a/chart2/source/controller/dialogs/ObjectNameProvider.cxx
+++ b/chart2/source/controller/dialogs/ObjectNameProvider.cxx
@@ -181,7 +181,7 @@ OUString lcl_getDataPointValueText( const Reference< XDataSeries >& xSeries, sal
a_Size = aNumberFormatterWrapper.getFormattedString( nNumberFormatKey, fValue, nLabelColor, bColorChanged );
}
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
diff --git a/chart2/source/controller/dialogs/RangeSelectionHelper.cxx b/chart2/source/controller/dialogs/RangeSelectionHelper.cxx
index a5183943a13a..be7783ca11f7 100644
--- a/chart2/source/controller/dialogs/RangeSelectionHelper.cxx
+++ b/chart2/source/controller/dialogs/RangeSelectionHelper.cxx
@@ -78,7 +78,7 @@ Reference< sheet::XRangeSelection > RangeSelectionHelper::getRangeSelection()
if( xDataProvider.is())
m_xRangeSelection.set( xDataProvider->getRangeSelection());
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
@@ -109,7 +109,7 @@ void RangeSelectionHelper::raiseRangeSelectionDocument()
}
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -155,7 +155,7 @@ bool RangeSelectionHelper::chooseRange(
xRangeSel->startRangeSelection( aArgs );
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
bResult = false;
ASSERT_EXCEPTION( ex );
diff --git a/chart2/source/controller/dialogs/res_ErrorBar.cxx b/chart2/source/controller/dialogs/res_ErrorBar.cxx
index 6dc3c88267ef..ed1f5e858429 100644
--- a/chart2/source/controller/dialogs/res_ErrorBar.cxx
+++ b/chart2/source/controller/dialogs/res_ErrorBar.cxx
@@ -202,7 +202,7 @@ void ErrorBarResources::SetChartDocumentForRangeChoosing(
{
xProps->getPropertyValue( C2U( "DisableDataTableDialog" ) ) >>= m_bDisableDataTableDialog;
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
diff --git a/chart2/source/controller/dialogs/res_LegendPosition.cxx b/chart2/source/controller/dialogs/res_LegendPosition.cxx
index e8a04873d8c7..4755e0477603 100644
--- a/chart2/source/controller/dialogs/res_LegendPosition.cxx
+++ b/chart2/source/controller/dialogs/res_LegendPosition.cxx
@@ -133,7 +133,7 @@ void LegendPositionResources::writeToResources( const uno::Reference< frame::XMo
}
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -176,7 +176,7 @@ void LegendPositionResources::writeToModel( const ::com::sun::star::uno::Referen
xProp->setPropertyValue( C2U( "RelativePosition" ), uno::Any());
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/controller/dialogs/tp_ChartType.cxx b/chart2/source/controller/dialogs/tp_ChartType.cxx
index 3139349bbcdc..8952f2f9ec3b 100644
--- a/chart2/source/controller/dialogs/tp_ChartType.cxx
+++ b/chart2/source/controller/dialogs/tp_ChartType.cxx
@@ -852,7 +852,7 @@ ChartTypeTabPage::ChartTypeTabPage( Window* pParent
{
xProps->getPropertyValue( C2U( "DisableComplexChartTypes" ) ) >>= bDisableComplexChartTypes;
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
diff --git a/chart2/source/controller/dialogs/tp_DataSource.cxx b/chart2/source/controller/dialogs/tp_DataSource.cxx
index b0a66c5b46a0..2deb40595b7a 100644
--- a/chart2/source/controller/dialogs/tp_DataSource.cxx
+++ b/chart2/source/controller/dialogs/tp_DataSource.cxx
@@ -1042,7 +1042,7 @@ bool DataSourceTabPage::updateModelFromControl( Edit * pField )
lcl_UpdateCurrentRange( m_aLB_ROLE, aSelectedRole, aRange );
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
bResult = false;
ASSERT_EXCEPTION( ex );
@@ -1060,7 +1060,7 @@ bool DataSourceTabPage::updateModelFromControl( Edit * pField )
if( xModifiable.is() )
xModifiable->setModified( sal_True );
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/controller/drawinglayer/DrawViewWrapper.cxx b/chart2/source/controller/drawinglayer/DrawViewWrapper.cxx
index 609fb83aaa2b..8359aa2f4362 100644
--- a/chart2/source/controller/drawinglayer/DrawViewWrapper.cxx
+++ b/chart2/source/controller/drawinglayer/DrawViewWrapper.cxx
@@ -96,7 +96,7 @@ SfxObjectShell * lcl_GetParentObjectShell( const uno::Reference< frame::XModel >
}
}
}
- catch( uno::Exception& )
+ catch( const uno::Exception& )
{
// TODO: error handling
}
diff --git a/chart2/source/controller/drawinglayer/ViewElementListProvider.cxx b/chart2/source/controller/drawinglayer/ViewElementListProvider.cxx
index 572a3c6afe0e..4824cc3b57ca 100644
--- a/chart2/source/controller/drawinglayer/ViewElementListProvider.cxx
+++ b/chart2/source/controller/drawinglayer/ViewElementListProvider.cxx
@@ -161,7 +161,7 @@ SdrObjList* ViewElementListProvider::GetSymbolList() const
m_pSymbolList = pSdrObject->GetSubList();
}
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
diff --git a/chart2/source/controller/itemsetwrapper/CharacterPropertyItemConverter.cxx b/chart2/source/controller/itemsetwrapper/CharacterPropertyItemConverter.cxx
index cb47280a57a4..ec69b4c2aad2 100644
--- a/chart2/source/controller/itemsetwrapper/CharacterPropertyItemConverter.cxx
+++ b/chart2/source/controller/itemsetwrapper/CharacterPropertyItemConverter.cxx
@@ -295,7 +295,7 @@ void CharacterPropertyItemConverter::FillSpecialItem(
rOutItemSet.Put( aItem );
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -556,7 +556,7 @@ bool CharacterPropertyItemConverter::ApplySpecialItem(
}
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/controller/itemsetwrapper/DataPointItemConverter.cxx b/chart2/source/controller/itemsetwrapper/DataPointItemConverter.cxx
index db5a8968568f..27d8b9e2e2d8 100644
--- a/chart2/source/controller/itemsetwrapper/DataPointItemConverter.cxx
+++ b/chart2/source/controller/itemsetwrapper/DataPointItemConverter.cxx
@@ -391,7 +391,7 @@ bool DataPointItemConverter::ApplySpecialItem(
bChanged = true;
}
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -426,7 +426,7 @@ bool DataPointItemConverter::ApplySpecialItem(
bChanged = true;
}
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -613,7 +613,7 @@ void DataPointItemConverter::FillSpecialItem(
GetPropertySet()->getPropertyValue( C2U( "LabelSeparator" ) ) >>= aValue;
rOutItemSet.Put( SfxStringItem( nWhichId, aValue ));
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -630,7 +630,7 @@ void DataPointItemConverter::FillSpecialItem(
else if( m_aAvailableLabelPlacements.getLength() )
rOutItemSet.Put( SfxInt32Item( nWhichId, m_aAvailableLabelPlacements[0] ));
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
diff --git a/chart2/source/controller/itemsetwrapper/ErrorBarItemConverter.cxx b/chart2/source/controller/itemsetwrapper/ErrorBarItemConverter.cxx
index 5d525b7c40c8..c9d290e04d33 100644
--- a/chart2/source/controller/itemsetwrapper/ErrorBarItemConverter.cxx
+++ b/chart2/source/controller/itemsetwrapper/ErrorBarItemConverter.cxx
@@ -68,7 +68,7 @@ void lcl_getErrorValues( const uno::Reference< beans::XPropertySet > & xErrorBar
xErrorBarProp->getPropertyValue( C2U( "PositiveError" )) >>= rOutPosError;
xErrorBarProp->getPropertyValue( C2U( "NegativeError" )) >>= rOutNegError;
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -86,7 +86,7 @@ void lcl_getErrorIndicatorValues(
xErrorBarProp->getPropertyValue( C2U( "ShowPositiveError" )) >>= rOutShowPosError;
xErrorBarProp->getPropertyValue( C2U( "ShowNegativeError" )) >>= rOutShowNegError;
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/controller/itemsetwrapper/GraphicPropertyItemConverter.cxx b/chart2/source/controller/itemsetwrapper/GraphicPropertyItemConverter.cxx
index 374cdc2a4e08..c173ad26b5d3 100644
--- a/chart2/source/controller/itemsetwrapper/GraphicPropertyItemConverter.cxx
+++ b/chart2/source/controller/itemsetwrapper/GraphicPropertyItemConverter.cxx
@@ -298,7 +298,7 @@ void GraphicPropertyItemConverter::FillSpecialItem(
}
}
}
- catch( beans::UnknownPropertyException &ex )
+ catch( const beans::UnknownPropertyException &ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -542,7 +542,7 @@ bool GraphicPropertyItemConverter::ApplySpecialItem(
}
}
}
- catch( beans::UnknownPropertyException &ex )
+ catch( const beans::UnknownPropertyException &ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/controller/itemsetwrapper/ItemConverter.cxx b/chart2/source/controller/itemsetwrapper/ItemConverter.cxx
index 5885ef4286a0..dae0ad45f13e 100644
--- a/chart2/source/controller/itemsetwrapper/ItemConverter.cxx
+++ b/chart2/source/controller/itemsetwrapper/ItemConverter.cxx
@@ -138,7 +138,7 @@ void ItemConverter::FillItemSet( SfxItemSet & rOutItemSet ) const
delete pItem;
}
}
- catch( beans::UnknownPropertyException &ex )
+ catch( const beans::UnknownPropertyException &ex )
{
delete pItem;
(void)ex;
@@ -149,9 +149,8 @@ void ItemConverter::FillItemSet( SfxItemSet & rOutItemSet ) const
" - unknown Property: " )) + aProperty.first,
RTL_TEXTENCODING_ASCII_US ).getStr());
}
- catch( uno::Exception &ex )
+ catch( const uno::Exception &ex )
{
- (void)ex;
ASSERT_EXCEPTION( ex );
}
}
@@ -162,7 +161,7 @@ void ItemConverter::FillItemSet( SfxItemSet & rOutItemSet ) const
{
FillSpecialItem( nWhich, rOutItemSet );
}
- catch( uno::Exception &ex )
+ catch( const uno::Exception &ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -212,7 +211,7 @@ bool ItemConverter::ApplyItemSet( const SfxItemSet & rItemSet )
bItemsChanged = true;
}
}
- catch( beans::UnknownPropertyException &ex )
+ catch( const beans::UnknownPropertyException &ex )
{
(void)ex;
OSL_FAIL(
@@ -222,7 +221,7 @@ bool ItemConverter::ApplyItemSet( const SfxItemSet & rItemSet )
" - unknown Property: " )) + aProperty.first,
RTL_TEXTENCODING_ASCII_US).getStr());
}
- catch( uno::Exception &ex )
+ catch( const uno::Exception &ex )
{
(void)ex;
OSL_FAIL( ::rtl::OUStringToOString(
diff --git a/chart2/source/controller/itemsetwrapper/LegendItemConverter.cxx b/chart2/source/controller/itemsetwrapper/LegendItemConverter.cxx
index fff2ddc6eef1..774bad37e398 100644
--- a/chart2/source/controller/itemsetwrapper/LegendItemConverter.cxx
+++ b/chart2/source/controller/itemsetwrapper/LegendItemConverter.cxx
@@ -165,7 +165,7 @@ bool LegendItemConverter::ApplySpecialItem( sal_uInt16 nWhichId, const SfxItemSe
bChanged = true;
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/controller/itemsetwrapper/SeriesOptionsItemConverter.cxx b/chart2/source/controller/itemsetwrapper/SeriesOptionsItemConverter.cxx
index 405b5bff0e27..4b32929dcc68 100644
--- a/chart2/source/controller/itemsetwrapper/SeriesOptionsItemConverter.cxx
+++ b/chart2/source/controller/itemsetwrapper/SeriesOptionsItemConverter.cxx
@@ -173,7 +173,7 @@ SeriesOptionsItemConverter::SeriesOptionsItemConverter(
}
}
}
- catch( uno::Exception &ex )
+ catch( const uno::Exception &ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -346,7 +346,7 @@ bool SeriesOptionsItemConverter::ApplySpecialItem( sal_uInt16 nWhichId, const Sf
bChanged = true;
}
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
diff --git a/chart2/source/controller/itemsetwrapper/StatisticsItemConverter.cxx b/chart2/source/controller/itemsetwrapper/StatisticsItemConverter.cxx
index c87cd7fa5081..797df1e6b6e1 100644
--- a/chart2/source/controller/itemsetwrapper/StatisticsItemConverter.cxx
+++ b/chart2/source/controller/itemsetwrapper/StatisticsItemConverter.cxx
@@ -68,7 +68,7 @@ uno::Reference< beans::XPropertySet > lcl_GetYErrorBar(
{
( xProp->getPropertyValue( C2U( "ErrorBarY" )) >>= xResult );
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -118,7 +118,7 @@ void lcl_getErrorValues( const uno::Reference< beans::XPropertySet > & xErrorBar
xErrorBarProp->getPropertyValue( C2U( "PositiveError" )) >>= rOutPosError;
xErrorBarProp->getPropertyValue( C2U( "NegativeError" )) >>= rOutNegError;
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -136,7 +136,7 @@ void lcl_getErrorIndicatorValues(
xErrorBarProp->getPropertyValue( C2U( "ShowPositiveError" )) >>= rOutShowPosError;
xErrorBarProp->getPropertyValue( C2U( "ShowNegativeError" )) >>= rOutShowNegError;
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/controller/main/ChartController.cxx b/chart2/source/controller/main/ChartController.cxx
index 8faaf758bdcb..31ad274858c6 100644
--- a/chart2/source/controller/main/ChartController.cxx
+++ b/chart2/source/controller/main/ChartController.cxx
@@ -232,7 +232,7 @@ void ChartController::TheModel::tryTermination()
m_bOwnership = false;
m_bOwnershipIsWellKnown = sal_True;
}
- catch( util::CloseVetoException& )
+ catch( const util::CloseVetoException& )
{
//since we have indicated to give up the ownership with paramter true in close call
//the one who has thrown the CloseVetoException is the new owner
@@ -255,7 +255,7 @@ void ChartController::TheModel::tryTermination()
return;
}
}
- catch( uno::Exception& ex)
+ catch(const uno::Exception& ex)
{
(void)(ex); // no warning in non-debug builds
OSL_FAIL( ( rtl::OString("Termination of model failed: ")
@@ -453,7 +453,7 @@ APPHELPER_XSERVICEINFO_IMPL(ChartController,CHART_CONTROLLER_SERVICE_IMPLEMENTAT
m_xLayoutManagerEventBroadcaster->addLayoutManagerEventListener( this );
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -917,7 +917,7 @@ void ChartController::impl_deleteDrawViewController()
xFrameCloseable->close( sal_False /* DeliverOwnership */ );
m_xFrame.clear();
}
- catch( util::CloseVetoException & )
+ catch( const util::CloseVetoException & )
{
// closing was vetoed
}
diff --git a/chart2/source/controller/main/ChartController_Insert.cxx b/chart2/source/controller/main/ChartController_Insert.cxx
index 99960e91488c..f39852278475 100644
--- a/chart2/source/controller/main/ChartController_Insert.cxx
+++ b/chart2/source/controller/main/ChartController_Insert.cxx
@@ -148,7 +148,7 @@ void ChartController::executeDispatch_InsertAxes()
aUndoGuard.commit();
}
}
- catch( uno::RuntimeException& e)
+ catch(const uno::RuntimeException& e)
{
ASSERT_EXCEPTION( e );
}
@@ -182,7 +182,7 @@ void ChartController::executeDispatch_InsertGrid()
aUndoGuard.commit();
}
}
- catch( uno::RuntimeException& e)
+ catch(const uno::RuntimeException& e)
{
ASSERT_EXCEPTION( e );
}
@@ -216,7 +216,7 @@ void ChartController::executeDispatch_InsertTitles()
aUndoGuard.commit();
}
}
- catch( uno::RuntimeException& e)
+ catch(const uno::RuntimeException& e)
{
ASSERT_EXCEPTION( e );
}
@@ -266,7 +266,7 @@ void ChartController::executeDispatch_OpenLegendDialog()
aUndoGuard.commit();
}
}
- catch( uno::RuntimeException& e)
+ catch(const uno::RuntimeException& e)
{
ASSERT_EXCEPTION( e );
}
@@ -332,7 +332,7 @@ void ChartController::executeDispatch_InsertMenu_DataLabels()
aUndoGuard.commit();
}
}
- catch( uno::RuntimeException& e)
+ catch(const uno::RuntimeException& e)
{
ASSERT_EXCEPTION( e );
}
@@ -382,7 +382,7 @@ void ChartController::executeDispatch_InsertMenu_YErrorBars()
aUndoGuard.commit();
}
}
- catch( uno::RuntimeException& e)
+ catch(const uno::RuntimeException& e)
{
ASSERT_EXCEPTION( e );
}
@@ -462,7 +462,7 @@ void ChartController::executeDispatch_InsertMenu_Trendlines()
aUndoGuard.commit();
}
}
- catch( uno::RuntimeException& e)
+ catch(const uno::RuntimeException& e)
{
ASSERT_EXCEPTION( e );
}
@@ -789,7 +789,7 @@ void ChartController::executeDispatch_InsertAxisTitle()
aUndoGuard.commit();
}
}
- catch( uno::RuntimeException& e)
+ catch(const uno::RuntimeException& e)
{
ASSERT_EXCEPTION( e );
}
@@ -811,7 +811,7 @@ void ChartController::executeDispatch_InsertAxis()
aUndoGuard.commit();
}
}
- catch( uno::RuntimeException& e)
+ catch(const uno::RuntimeException& e)
{
ASSERT_EXCEPTION( e );
}
@@ -833,7 +833,7 @@ void ChartController::executeDispatch_DeleteAxis()
aUndoGuard.commit();
}
}
- catch( uno::RuntimeException& e)
+ catch(const uno::RuntimeException& e)
{
ASSERT_EXCEPTION( e );
}
@@ -855,7 +855,7 @@ void ChartController::executeDispatch_InsertMajorGrid()
aUndoGuard.commit();
}
}
- catch( uno::RuntimeException& e)
+ catch(const uno::RuntimeException& e)
{
ASSERT_EXCEPTION( e );
}
@@ -877,7 +877,7 @@ void ChartController::executeDispatch_DeleteMajorGrid()
aUndoGuard.commit();
}
}
- catch( uno::RuntimeException& e)
+ catch(const uno::RuntimeException& e)
{
ASSERT_EXCEPTION( e );
}
@@ -901,7 +901,7 @@ void ChartController::executeDispatch_InsertMinorGrid()
aUndoGuard.commit();
}
}
- catch( uno::RuntimeException& e)
+ catch(const uno::RuntimeException& e)
{
ASSERT_EXCEPTION( e );
}
@@ -925,7 +925,7 @@ void ChartController::executeDispatch_DeleteMinorGrid()
aUndoGuard.commit();
}
}
- catch( uno::RuntimeException& e)
+ catch(const uno::RuntimeException& e)
{
ASSERT_EXCEPTION( e );
}
diff --git a/chart2/source/controller/main/ChartController_Position.cxx b/chart2/source/controller/main/ChartController_Position.cxx
index 73828edd3d58..f4dcb0340d04 100644
--- a/chart2/source/controller/main/ChartController_Position.cxx
+++ b/chart2/source/controller/main/ChartController_Position.cxx
@@ -183,7 +183,7 @@ void SAL_CALL ChartController::executeDispatch_PositionAndSize()
}
delete pDlg;
}
- catch( uno::Exception& e)
+ catch(const uno::Exception& e)
{
delete pDlg;
ASSERT_EXCEPTION( e );
diff --git a/chart2/source/controller/main/ChartController_Properties.cxx b/chart2/source/controller/main/ChartController_Properties.cxx
index 8f81464dcd0c..4697458d3140 100644
--- a/chart2/source/controller/main/ChartController_Properties.cxx
+++ b/chart2/source/controller/main/ChartController_Properties.cxx
@@ -818,10 +818,10 @@ bool ChartController::executeDlg_ObjectProperties_withoutUndoGuard( const ::rtl:
}
}
}
- catch( util::CloseVetoException& )
+ catch( const util::CloseVetoException& )
{
}
- catch( uno::RuntimeException& )
+ catch( const uno::RuntimeException& )
{
}
return bRet;
@@ -842,7 +842,7 @@ void SAL_CALL ChartController::executeDispatch_View3D()
if( aDlg.Execute() == RET_OK )
aUndoGuard.commit();
}
- catch( uno::RuntimeException& e)
+ catch(const uno::RuntimeException& e)
{
ASSERT_EXCEPTION( e );
}
diff --git a/chart2/source/controller/main/ChartController_Tools.cxx b/chart2/source/controller/main/ChartController_Tools.cxx
index 10cfa8320f29..51021eeca84a 100644
--- a/chart2/source/controller/main/ChartController_Tools.cxx
+++ b/chart2/source/controller/main/ChartController_Tools.cxx
@@ -236,7 +236,7 @@ void ChartController::executeDispatch_NewArrangement()
aUndoGuard.commit();
}
}
- catch( uno::RuntimeException & ex )
+ catch( const uno::RuntimeException & ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/controller/main/ChartController_Window.cxx b/chart2/source/controller/main/ChartController_Window.cxx
index 699a3f385b3f..84fb32e0a606 100644
--- a/chart2/source/controller/main/ChartController_Window.cxx
+++ b/chart2/source/controller/main/ChartController_Window.cxx
@@ -539,7 +539,7 @@ void ChartController::execute_Paint( const Rectangle& rRect )
pDrawViewWrapper->CompleteRedraw(m_pChartWindow, Region(rRect) );
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -890,7 +890,7 @@ void ChartController::execute_MouseButtonUp( const MouseEvent& rMEvt )
}
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/controller/main/ChartFrameloader.cxx b/chart2/source/controller/main/ChartFrameloader.cxx
index 80f697c2fd1d..1ded91269376 100644
--- a/chart2/source/controller/main/ChartFrameloader.cxx
+++ b/chart2/source/controller/main/ChartFrameloader.cxx
@@ -185,7 +185,7 @@ APPHELPER_XSERVICEINFO_IMPL(ChartFrameLoader,CHART_FRAMELOADER_SERVICE_IMPLEMENT
}
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/controller/main/ChartRenderer.cxx b/chart2/source/controller/main/ChartRenderer.cxx
index 27b45f482ca8..a6179c13f806 100644
--- a/chart2/source/controller/main/ChartRenderer.cxx
+++ b/chart2/source/controller/main/ChartRenderer.cxx
@@ -135,7 +135,7 @@ bool ChartRenderer::DoPaint(OutputDevice* pOutDev, const Rectangle& rLogicObject
pOutDev->SetMapMode(aOldMapMode);
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/controller/main/ControllerCommandDispatch.cxx b/chart2/source/controller/main/ControllerCommandDispatch.cxx
index 66837aeb02ff..1a37a1ce75ab 100644
--- a/chart2/source/controller/main/ControllerCommandDispatch.cxx
+++ b/chart2/source/controller/main/ControllerCommandDispatch.cxx
@@ -287,7 +287,7 @@ void ControllerState::update(
if( xEqProp.is())
xEqProp->getPropertyValue( C2U("ShowCorrelationCoefficient") ) >>= bHasR2Value;
}
- catch( uno::RuntimeException& e)
+ catch(const uno::RuntimeException& e)
{
ASSERT_EXCEPTION( e );
}
@@ -537,7 +537,7 @@ void ControllerCommandDispatch::updateCommandAvailability()
{
xProps->getPropertyValue( C2U( "DisableDataTableDialog" ) ) >>= bDisableDataTableDialog;
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
diff --git a/chart2/source/controller/main/ObjectHierarchy.cxx b/chart2/source/controller/main/ObjectHierarchy.cxx
index d2ed048d421f..d059c1ab2234 100644
--- a/chart2/source/controller/main/ObjectHierarchy.cxx
+++ b/chart2/source/controller/main/ObjectHierarchy.cxx
@@ -509,7 +509,7 @@ void ImplObjectHierarchy::createDataSeriesTree(
}
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -538,7 +538,7 @@ void ImplObjectHierarchy::createAdditionalShapesTree( ObjectHierarchy::tChildCon
}
}
}
- catch ( uno::Exception& ex )
+ catch ( const uno::Exception& ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/controller/main/ShapeController.cxx b/chart2/source/controller/main/ShapeController.cxx
index 06239425903e..5878e4c318d1 100644
--- a/chart2/source/controller/main/ShapeController.cxx
+++ b/chart2/source/controller/main/ShapeController.cxx
@@ -642,7 +642,7 @@ SdrObject* ShapeController::getFirstAdditionalShape()
}
}
}
- catch ( uno::Exception& ex )
+ catch ( const uno::Exception& ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -682,7 +682,7 @@ SdrObject* ShapeController::getLastAdditionalShape()
}
}
}
- catch ( uno::Exception& ex )
+ catch ( const uno::Exception& ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/model/main/ChartModel_Persistence.cxx b/chart2/source/model/main/ChartModel_Persistence.cxx
index f452a37b149c..de820b94ea69 100644
--- a/chart2/source/model/main/ChartModel_Persistence.cxx
+++ b/chart2/source/model/main/ChartModel_Persistence.cxx
@@ -138,7 +138,7 @@ Reference< embed::XStorage > lcl_createStorage(
xStorageFact->createInstanceWithArguments( aStorageArgs ), uno::UNO_QUERY_THROW );
OSL_ENSURE( xStorage.is(), "No Storage" );
}
- catch( ::com::sun::star::ucb::ContentCreationException & rEx )
+ catch( const ::com::sun::star::ucb::ContentCreationException & rEx )
{
ASSERT_EXCEPTION( rEx );
}
@@ -187,7 +187,7 @@ Reference< document::XFilter > ChartModel::impl_createFilter(
}
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -365,7 +365,7 @@ void ChartModel::impl_store(
xExporter->setSourceDocument( Reference< lang::XComponent >( this ));
xFilter->filter( aMD );
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -390,7 +390,7 @@ void ChartModel::impl_store(
xPropSet->setPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM( "SavedObject" )),
uno::makeAny( aMDHelper.HierarchicalDocumentName ) );
}
- catch ( uno::Exception& )
+ catch ( const uno::Exception& )
{
}
}
@@ -484,14 +484,14 @@ void SAL_CALL ChartModel::initNew()
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
}
ChartModelHelper::setIncludeHiddenCells( false, this );
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -568,7 +568,7 @@ void SAL_CALL ChartModel::load(
if( aMDHelper.ISSET_URL )
aURL = aMDHelper.URL;
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -666,7 +666,7 @@ void ChartModel::impl_loadGraphics(
}
}
}
- catch ( uno::Exception& )
+ catch ( const uno::Exception& )
{
}
}
diff --git a/chart2/source/model/template/AreaChartTypeTemplate.cxx b/chart2/source/model/template/AreaChartTypeTemplate.cxx
index 7920fde1d838..3212cc478d43 100644
--- a/chart2/source/model/template/AreaChartTypeTemplate.cxx
+++ b/chart2/source/model/template/AreaChartTypeTemplate.cxx
@@ -181,7 +181,7 @@ sal_Int32 AreaChartTypeTemplate::getDimension() const
const_cast< AreaChartTypeTemplate * >( this )->
getFastPropertyValue( PROP_AREA_TEMPLATE_DIMENSION ) >>= nDim;
}
- catch( beans::UnknownPropertyException & ex )
+ catch( const beans::UnknownPropertyException & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -238,7 +238,7 @@ Reference< chart2::XChartType > AreaChartTypeTemplate::getChartTypeForIndex( sal
xResult.set( xFact->createInstance(
CHART2_SERVICE_NAME_CHARTTYPE_AREA ), uno::UNO_QUERY_THROW );
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/model/template/BarChartTypeTemplate.cxx b/chart2/source/model/template/BarChartTypeTemplate.cxx
index f5c43ea1dd83..450f12df38d1 100644
--- a/chart2/source/model/template/BarChartTypeTemplate.cxx
+++ b/chart2/source/model/template/BarChartTypeTemplate.cxx
@@ -224,7 +224,7 @@ Reference< chart2::XChartType > BarChartTypeTemplate::getChartTypeForIndex( sal_
xResult.set( xFact->createInstance(
CHART2_SERVICE_NAME_CHARTTYPE_COLUMN ), uno::UNO_QUERY_THROW );
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -283,7 +283,7 @@ void SAL_CALL BarChartTypeTemplate::applyStyle(
this->getFastPropertyValue( aAGeometry3D, PROP_BAR_TEMPLATE_GEOMETRY3D );
DataSeriesHelper::setPropertyAlsoToAllAttributedDataPoints( xSeries, C2U( "Geometry3D" ), aAGeometry3D );
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/model/template/BubbleChartTypeTemplate.cxx b/chart2/source/model/template/BubbleChartTypeTemplate.cxx
index 004558f12635..abb8f5e25b84 100644
--- a/chart2/source/model/template/BubbleChartTypeTemplate.cxx
+++ b/chart2/source/model/template/BubbleChartTypeTemplate.cxx
@@ -242,7 +242,7 @@ Reference< chart2::XChartType > BubbleChartTypeTemplate::getChartTypeForIndex( s
xResult.set( xFact->createInstance(
CHART2_SERVICE_NAME_CHARTTYPE_BUBBLE ), uno::UNO_QUERY_THROW );
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -265,7 +265,7 @@ Reference< chart2::XChartType > SAL_CALL BubbleChartTypeTemplate::getChartTypeFo
ChartTypeTemplate::copyPropertiesFromOldToNewCoordianteSystem( aFormerlyUsedChartTypes, xResult );
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/model/template/BubbleDataInterpreter.cxx b/chart2/source/model/template/BubbleDataInterpreter.cxx
index 84d8407e1015..d7e6eae6c464 100644
--- a/chart2/source/model/template/BubbleDataInterpreter.cxx
+++ b/chart2/source/model/template/BubbleDataInterpreter.cxx
@@ -125,7 +125,7 @@ chart2::InterpretedData SAL_CALL BubbleDataInterpreter::interpretDataSource(
bNextIsYValues = (nDataSeqCount-(nDataIdx+1)) >= 2;//two or more left
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -273,7 +273,7 @@ chart2::InterpretedData SAL_CALL BubbleDataInterpreter::reinterpretDataSeries(
xSink->setData( aNewSequences );
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -296,7 +296,7 @@ sal_Bool SAL_CALL BubbleDataInterpreter::isDataCompatible(
if( aSeq.getLength() != 3 )
return sal_False;
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/model/template/ChartTypeManager.cxx b/chart2/source/model/template/ChartTypeManager.cxx
index e2273e0a9a81..adb1682826ef 100644
--- a/chart2/source/model/template/ChartTypeManager.cxx
+++ b/chart2/source/model/template/ChartTypeManager.cxx
@@ -258,7 +258,7 @@ uno::Reference< uno::XInterface > SAL_CALL ChartTypeManager::createInstance(
aServiceSpecifier, m_xContext );
}
// catch( registry::InvalidValueException & ex )
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
// couldn't create service via factory
diff --git a/chart2/source/model/template/ChartTypeTemplate.cxx b/chart2/source/model/template/ChartTypeTemplate.cxx
index 025f27c86f44..0fe079e40849 100644
--- a/chart2/source/model/template/ChartTypeTemplate.cxx
+++ b/chart2/source/model/template/ChartTypeTemplate.cxx
@@ -183,7 +183,7 @@ uno::Reference< XDiagram > SAL_CALL ChartTypeTemplate::createDiagramByDataSource
Sequence< Reference< XChartType > > aOldChartTypesSeq;
FillDiagram( xDia, aData.Series, aData.Categories, aOldChartTypesSeq, true );
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -266,7 +266,7 @@ void SAL_CALL ChartTypeTemplate::changeDiagram( const uno::Reference< XDiagram >
FillDiagram( xDiagram, aSeriesSeq, aData.Categories, aOldChartTypesSeq, false );
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -323,7 +323,7 @@ void SAL_CALL ChartTypeTemplate::changeDiagramData(
::chart::debug::ChartDebugTraceDiagram( xDiagram );
#endif
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -376,7 +376,7 @@ sal_Bool SAL_CALL ChartTypeTemplate::matchesTemplate(
}
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -888,7 +888,7 @@ void ChartTypeTemplate::createChartTypes(
}
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/model/template/ColumnLineChartTypeTemplate.cxx b/chart2/source/model/template/ColumnLineChartTypeTemplate.cxx
index d4e5ba58120b..4b67fc60162e 100644
--- a/chart2/source/model/template/ColumnLineChartTypeTemplate.cxx
+++ b/chart2/source/model/template/ColumnLineChartTypeTemplate.cxx
@@ -250,7 +250,7 @@ void ColumnLineChartTypeTemplate::createChartTypes(
xDSCnt->setDataSeries( aLineSeq );
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -364,7 +364,7 @@ sal_Bool SAL_CALL ColumnLineChartTypeTemplate::matchesTemplate(
}
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -401,7 +401,7 @@ Reference< XChartType > SAL_CALL ColumnLineChartTypeTemplate::getChartTypeForNew
CHART2_SERVICE_NAME_CHARTTYPE_LINE ), uno::UNO_QUERY_THROW );
ChartTypeTemplate::copyPropertiesFromOldToNewCoordianteSystem( aFormerlyUsedChartTypes, xResult );
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/model/template/DataInterpreter.cxx b/chart2/source/model/template/DataInterpreter.cxx
index 219b6672bda8..f4354c173e75 100644
--- a/chart2/source/model/template/DataInterpreter.cxx
+++ b/chart2/source/model/template/DataInterpreter.cxx
@@ -116,7 +116,7 @@ InterpretedData SAL_CALL DataInterpreter::interpretDataSource(
SetRole( aData[i]->getValues(), C2U("values-y"));
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -198,7 +198,7 @@ InterpretedData SAL_CALL DataInterpreter::reinterpretDataSeries(
xSink->setData( aNewSequences );
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -222,7 +222,7 @@ sal_Bool SAL_CALL DataInterpreter::isDataCompatible(
if( aSeq.getLength() != 1 )
return sal_False;
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -317,7 +317,7 @@ Reference< data::XDataSource > SAL_CALL DataInterpreter::mergeInterpretedData(
}
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -339,7 +339,7 @@ OUString DataInterpreter::GetRole( const Reference< data::XDataSequence > & xSeq
Reference< beans::XPropertySet > xProp( xSeq, uno::UNO_QUERY_THROW );
xProp->getPropertyValue( C2U("Role")) >>= aResult;
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -355,7 +355,7 @@ void DataInterpreter::SetRole( const Reference< data::XDataSequence > & xSeq, co
Reference< beans::XPropertySet > xProp( xSeq, uno::UNO_QUERY_THROW );
xProp->setPropertyValue( C2U("Role"), uno::makeAny( rRole ));
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/model/template/LineChartTypeTemplate.cxx b/chart2/source/model/template/LineChartTypeTemplate.cxx
index 6c8d4af27e93..7b352ac746f2 100644
--- a/chart2/source/model/template/LineChartTypeTemplate.cxx
+++ b/chart2/source/model/template/LineChartTypeTemplate.cxx
@@ -262,7 +262,7 @@ sal_Bool SAL_CALL LineChartTypeTemplate::matchesTemplate(
break;
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -291,7 +291,7 @@ sal_Bool SAL_CALL LineChartTypeTemplate::matchesTemplate(
setFastPropertyValue_NoBroadcast( PROP_LINECHARTTYPE_TEMPLATE_CURVE_RESOLUTION, xChartTypeProp->getPropertyValue(C2U("CurveResolution" )) );
setFastPropertyValue_NoBroadcast( PROP_LINECHARTTYPE_TEMPLATE_SPLINE_ORDER, xChartTypeProp->getPropertyValue(C2U("SplineOrder" )) );
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -322,7 +322,7 @@ Reference< chart2::XChartType > LineChartTypeTemplate::getChartTypeForIndex( sal
C2U( "SplineOrder" ), getFastPropertyValue( PROP_LINECHARTTYPE_TEMPLATE_SPLINE_ORDER ));
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -356,7 +356,7 @@ Reference< chart2::XChartType > SAL_CALL LineChartTypeTemplate::getChartTypeForN
C2U( "SplineOrder" ), getFastPropertyValue( PROP_LINECHARTTYPE_TEMPLATE_SPLINE_ORDER ));
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -381,7 +381,7 @@ void SAL_CALL LineChartTypeTemplate::applyStyle(
DataSeriesHelper::switchLinesOnOrOff( xProp, m_bHasLines );
DataSeriesHelper::makeLinesThickOrThin( xProp, m_nDim==2 );
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/model/template/NetChartTypeTemplate.cxx b/chart2/source/model/template/NetChartTypeTemplate.cxx
index 1a5bad914781..d59ef837c804 100644
--- a/chart2/source/model/template/NetChartTypeTemplate.cxx
+++ b/chart2/source/model/template/NetChartTypeTemplate.cxx
@@ -94,7 +94,7 @@ void SAL_CALL NetChartTypeTemplate::applyStyle(
DataSeriesHelper::switchLinesOnOrOff( xProp, m_bHasLines );
DataSeriesHelper::makeLinesThickOrThin( xProp, true );
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -159,7 +159,7 @@ sal_Bool SAL_CALL NetChartTypeTemplate::matchesTemplate(
break;
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -195,7 +195,7 @@ Reference< chart2::XChartType > NetChartTypeTemplate::getChartTypeForIndex( sal_
xResult.set( xFact->createInstance(
CHART2_SERVICE_NAME_CHARTTYPE_NET ), uno::UNO_QUERY_THROW );
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/model/template/PieChartTypeTemplate.cxx b/chart2/source/model/template/PieChartTypeTemplate.cxx
index c7765a1ed31b..41709c0dbd72 100644
--- a/chart2/source/model/template/PieChartTypeTemplate.cxx
+++ b/chart2/source/model/template/PieChartTypeTemplate.cxx
@@ -217,7 +217,7 @@ sal_Int32 PieChartTypeTemplate::getDimension() const
const_cast< PieChartTypeTemplate * >( this )->
getFastPropertyValue( PROP_PIE_TEMPLATE_DIMENSION ) >>= nDim;
}
- catch( beans::UnknownPropertyException & ex )
+ catch( const beans::UnknownPropertyException & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -312,7 +312,7 @@ void PieChartTypeTemplate::createChartTypes(
aFlatSeriesSeq, rCoordSys[0], getStackMode( 0 ));
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -383,7 +383,7 @@ sal_Bool SAL_CALL PieChartTypeTemplate::matchesTemplate(
bResult = ( eOffsetMode == ePieOffsetMode );
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
bResult = false;
@@ -423,7 +423,7 @@ Reference< chart2::XChartType > PieChartTypeTemplate::getChartTypeForIndex( sal_
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -452,7 +452,7 @@ Reference< chart2::XChartType > SAL_CALL PieChartTypeTemplate::getChartTypeForNe
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -545,7 +545,7 @@ void SAL_CALL PieChartTypeTemplate::applyStyle(
// vary colors by point
xProp->setPropertyValue( C2U("VaryColorsByPoint"), uno::makeAny( true ));
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/model/template/ScatterChartTypeTemplate.cxx b/chart2/source/model/template/ScatterChartTypeTemplate.cxx
index 0d15aec0063b..62b1de11ab44 100644
--- a/chart2/source/model/template/ScatterChartTypeTemplate.cxx
+++ b/chart2/source/model/template/ScatterChartTypeTemplate.cxx
@@ -232,7 +232,7 @@ void SAL_CALL ScatterChartTypeTemplate::applyStyle(
if( m_nDim==3 )
DataSeriesHelper::setPropertyAlsoToAllAttributedDataPoints( xSeries, C2U( "BorderStyle" ), uno::makeAny( drawing::LineStyle_NONE ) );
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -296,7 +296,7 @@ sal_Bool SAL_CALL ScatterChartTypeTemplate::matchesTemplate(
break;
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -325,7 +325,7 @@ sal_Bool SAL_CALL ScatterChartTypeTemplate::matchesTemplate(
setFastPropertyValue_NoBroadcast( PROP_SCATTERCHARTTYPE_TEMPLATE_CURVE_RESOLUTION, xChartTypeProp->getPropertyValue(C2U("CurveResolution" )) );
setFastPropertyValue_NoBroadcast( PROP_SCATTERCHARTTYPE_TEMPLATE_SPLINE_ORDER, xChartTypeProp->getPropertyValue(C2U("SplineOrder" )) );
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -356,7 +356,7 @@ Reference< chart2::XChartType > ScatterChartTypeTemplate::getChartTypeForIndex(
C2U( "SplineOrder" ), getFastPropertyValue( PROP_SCATTERCHARTTYPE_TEMPLATE_SPLINE_ORDER ));
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -390,7 +390,7 @@ Reference< chart2::XChartType > SAL_CALL ScatterChartTypeTemplate::getChartTypeF
C2U( "SplineOrder" ), getFastPropertyValue( PROP_SCATTERCHARTTYPE_TEMPLATE_SPLINE_ORDER ));
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/model/template/StockChartTypeTemplate.cxx b/chart2/source/model/template/StockChartTypeTemplate.cxx
index 39881b7e47de..f0490a03d73d 100644
--- a/chart2/source/model/template/StockChartTypeTemplate.cxx
+++ b/chart2/source/model/template/StockChartTypeTemplate.cxx
@@ -275,7 +275,7 @@ void SAL_CALL StockChartTypeTemplate::applyStyle(
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -413,7 +413,7 @@ void StockChartTypeTemplate::createChartTypes(
Reference< XChartTypeContainer > xCTCnt( rCoordSys[ 0 ], uno::UNO_QUERY_THROW );
xCTCnt->setChartTypes( ::chart::ContainerHelper::ContainerToSequence(aChartTypeVec) );
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -494,7 +494,7 @@ sal_Bool SAL_CALL StockChartTypeTemplate::matchesTemplate(
}
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -516,7 +516,7 @@ Reference< XChartType > SAL_CALL StockChartTypeTemplate::getChartTypeForNewSerie
CHART2_SERVICE_NAME_CHARTTYPE_LINE ), uno::UNO_QUERY_THROW );
ChartTypeTemplate::copyPropertiesFromOldToNewCoordianteSystem( aFormerlyUsedChartTypes, xResult );
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/model/template/StockDataInterpreter.cxx b/chart2/source/model/template/StockDataInterpreter.cxx
index ba169d87e72a..9609710e2406 100644
--- a/chart2/source/model/template/StockDataInterpreter.cxx
+++ b/chart2/source/model/template/StockDataInterpreter.cxx
@@ -258,7 +258,7 @@ InterpretedData SAL_CALL StockDataInterpreter::interpretDataSource(
xSink->setData( aSequences[nGroupIndex][nSeriesIdx] );
aResultSeries[nGroupIndex][nSeriesIdx].set( xSeries );
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -317,7 +317,7 @@ sal_Bool SAL_CALL StockDataInterpreter::isDataCompatible(
if( aSeq.getLength() != nNumberOfNecessarySequences )
return sal_False;
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/model/template/XYDataInterpreter.cxx b/chart2/source/model/template/XYDataInterpreter.cxx
index f44450c37d1c..8130288fd5c8 100644
--- a/chart2/source/model/template/XYDataInterpreter.cxx
+++ b/chart2/source/model/template/XYDataInterpreter.cxx
@@ -108,7 +108,7 @@ chart2::InterpretedData SAL_CALL XYDataInterpreter::interpretDataSource(
SetRole( aData[nDataIdx]->getValues(), C2U("values-y"));
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -233,7 +233,7 @@ chart2::InterpretedData SAL_CALL XYDataInterpreter::reinterpretDataSeries(
xSink->setData( aNewSequences );
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -257,7 +257,7 @@ sal_Bool SAL_CALL XYDataInterpreter::isDataCompatible(
if( aSeq.getLength() != 2 )
return sal_False;
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/tools/AxisHelper.cxx b/chart2/source/tools/AxisHelper.cxx
index 1c29b82943d2..c19335435224 100644
--- a/chart2/source/tools/AxisHelper.cxx
+++ b/chart2/source/tools/AxisHelper.cxx
@@ -389,7 +389,7 @@ Reference< XAxis > AxisHelper::createAxis(
if( pRefSizeProvider )
pRefSizeProvider->setValuesAtPropertySet( xProp );
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -654,7 +654,7 @@ Reference< XAxis > AxisHelper::getParallelAxis( const Reference< XAxis >& xAxis
return getAxis( nDimensionIndex, nParallelAxisIndex, getCoordinateSystemByIndex( xDiagram, nCooSysIndex ) );
}
}
- catch( uno::RuntimeException& )
+ catch( const uno::RuntimeException& )
{
}
return 0;
@@ -1108,7 +1108,7 @@ void AxisHelper::setRTLAxisLayout( const Reference< XCoordinateSystem >& xCooSys
xVerticalMainAxis->setScaleData(aScale);
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -1133,7 +1133,7 @@ void AxisHelper::setRTLAxisLayout( const Reference< XCoordinateSystem >& xCooSys
xVerticalSecondaryAxis->setScaleData(aScale);
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/tools/ChartModelHelper.cxx b/chart2/source/tools/ChartModelHelper.cxx
index b0265bac9e18..04399e9f099d 100644
--- a/chart2/source/tools/ChartModelHelper.cxx
+++ b/chart2/source/tools/ChartModelHelper.cxx
@@ -77,7 +77,7 @@ uno::Reference< XDiagram > ChartModelHelper::findDiagram( const uno::Reference<
if( xChartDoc.is())
return xChartDoc->getFirstDiagram();
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -244,7 +244,7 @@ bool ChartModelHelper::setIncludeHiddenCells( bool bIncludeHiddenCells, const un
xDiagramProperties->setPropertyValue( C2U("IncludeHiddenCells"), aNewValue);
}
}
- catch (uno::Exception& e)
+ catch (const uno::Exception& e)
{
ASSERT_EXCEPTION(e);
}
diff --git a/chart2/source/tools/ChartViewHelper.cxx b/chart2/source/tools/ChartViewHelper.cxx
index fb26f8afe13c..22e8c737d2df 100644
--- a/chart2/source/tools/ChartViewHelper.cxx
+++ b/chart2/source/tools/ChartViewHelper.cxx
@@ -58,7 +58,7 @@ void ChartViewHelper::setViewToDirtyState( const uno::Reference< frame::XModel >
}
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/tools/DataSeriesHelper.cxx b/chart2/source/tools/DataSeriesHelper.cxx
index 495e60b46d2b..ab0a471f4844 100644
--- a/chart2/source/tools/DataSeriesHelper.cxx
+++ b/chart2/source/tools/DataSeriesHelper.cxx
@@ -191,7 +191,7 @@ void lcl_insertOrDeleteDataLabelsToSeriesAndAllPoints( const Reference< chart2::
}
}
}
- catch( uno::Exception &e)
+ catch(const uno::Exception &e)
{
ASSERT_EXCEPTION( e );
}
@@ -422,7 +422,7 @@ void setStackModeAtSeries(
aAxisIndexSet.insert(nAxisIndex);
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -473,7 +473,7 @@ sal_Int32 getAttachedAxisIndex( const Reference< chart2::XDataSeries > & xSeries
xProp->getPropertyValue( C2U("AttachedAxisIndex") ) >>= nRet;
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -543,7 +543,7 @@ void deleteSeries(
xSeriesCnt->setDataSeries( ContainerHelper::ContainerToSequence( aSeries ));
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -703,9 +703,8 @@ bool lcl_SequenceHasUnhiddenData( const uno::Reference< chart2::data::XDataSeque
if( !aHiddenValues.getLength() )
return true;
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& )
{
- (void)e; // avoid warning
return true;
}
}
@@ -790,7 +789,7 @@ bool hasDataLabelsAtSeries( const Reference< chart2::XDataSeries >& xSeries )
bRet = aLabel.ShowNumber || aLabel.ShowNumberInPercent || aLabel.ShowCategoryName;
}
}
- catch( uno::Exception &e)
+ catch(const uno::Exception &e)
{
ASSERT_EXCEPTION( e );
}
@@ -823,7 +822,7 @@ bool hasDataLabelsAtPoints( const Reference< chart2::XDataSeries >& xSeries )
}
}
}
- catch( uno::Exception &e)
+ catch(const uno::Exception &e)
{
ASSERT_EXCEPTION( e );
}
@@ -857,7 +856,7 @@ bool hasDataLabelAtPoint( const Reference< chart2::XDataSeries >& xSeries, sal_I
}
}
}
- catch( uno::Exception &e)
+ catch(const uno::Exception &e)
{
ASSERT_EXCEPTION( e );
}
@@ -887,7 +886,7 @@ void insertDataLabelToPoint( const Reference< beans::XPropertySet >& xPointProp
xPointProp->setPropertyValue( C2U( "Label" ), uno::makeAny( aLabel ) );
}
}
- catch( uno::Exception &e)
+ catch(const uno::Exception &e)
{
ASSERT_EXCEPTION( e );
}
@@ -907,7 +906,7 @@ void deleteDataLabelsFromPoint( const Reference< beans::XPropertySet >& xPointPr
xPointProp->setPropertyValue( C2U( "Label" ), uno::makeAny( aLabel ) );
}
}
- catch( uno::Exception &e)
+ catch(const uno::Exception &e)
{
ASSERT_EXCEPTION( e );
}
diff --git a/chart2/source/tools/DiagramHelper.cxx b/chart2/source/tools/DiagramHelper.cxx
index 2fa44cb626e7..3664e96ec28c 100644
--- a/chart2/source/tools/DiagramHelper.cxx
+++ b/chart2/source/tools/DiagramHelper.cxx
@@ -130,7 +130,7 @@ DiagramHelper::tTemplateWithServiceName
}
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -210,7 +210,7 @@ void DiagramHelper::setVertical(
}
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -338,7 +338,7 @@ void DiagramHelper::setStackMode(
}
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -460,7 +460,7 @@ StackMode DiagramHelper::getStackModeFromChartType(
}
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -492,7 +492,7 @@ sal_Int32 DiagramHelper::getDimension( const Reference< XDiagram > & xDiagram )
}
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -554,7 +554,7 @@ void DiagramHelper::setDimension(
else if( nNewDimensionCount==2 && eStackMode == StackMode_Z_STACKED )
DiagramHelper::setStackMode( xDiagram, StackMode_NONE );
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -588,7 +588,7 @@ void DiagramHelper::replaceCoordinateSystem(
if( xCategories.is() )
DiagramHelper::setCategoriesToDiagram( xCategories, xDiagram );
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -728,7 +728,7 @@ uno::Reference< XChartType > DiagramHelper::getChartTypeOfSeries(
}
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -836,7 +836,7 @@ std::vector< Reference< XAxis > > lcl_getAxisHoldingCategoriesFromDiagram(
}
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -879,7 +879,7 @@ bool DiagramHelper::isCategoryDiagram(
}
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -947,7 +947,7 @@ Reference< data::XLabeledDataSequence >
{
xProp->setPropertyValue( C2U( "Role" ), uno::makeAny( C2U("categories") ) );
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -956,7 +956,7 @@ Reference< data::XLabeledDataSequence >
}
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -1079,7 +1079,7 @@ void lcl_switchToDateCategories( const Reference< XChartDocument >& xChartDoc, c
{
xKeyProps = xNumberFormats->getByKey( nNumberFormat );
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -1244,7 +1244,7 @@ Sequence< Reference< XChartType > >
::std::back_inserter( aResult ));
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -1424,10 +1424,10 @@ bool lcl_moveSeriesOrCheckIfMoveIsAllowed(
}
}
}
- catch( util::CloseVetoException& )
+ catch( const util::CloseVetoException& )
{
}
- catch( uno::RuntimeException& )
+ catch( const uno::RuntimeException& )
{
}
}
@@ -1437,10 +1437,10 @@ bool lcl_moveSeriesOrCheckIfMoveIsAllowed(
}
}
}
- catch( util::CloseVetoException& )
+ catch( const util::CloseVetoException& )
{
}
- catch( uno::RuntimeException& )
+ catch( const uno::RuntimeException& )
{
}
return bMovedOrMoveAllowed;
@@ -1548,7 +1548,7 @@ sal_Int32 DiagramHelper::getGeometry3D(
}
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/tools/FormattedStringHelper.cxx b/chart2/source/tools/FormattedStringHelper.cxx
index b6cf2a9fdb89..6f20517ee9f2 100644
--- a/chart2/source/tools/FormattedStringHelper.cxx
+++ b/chart2/source/tools/FormattedStringHelper.cxx
@@ -65,7 +65,7 @@ Sequence< Reference< chart2::XFormattedString > >
xTextProperties, Reference< beans::XPropertySet >( xFormStr, uno::UNO_QUERY ) );
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/tools/LegendHelper.cxx b/chart2/source/tools/LegendHelper.cxx
index 82ba82a84cfc..787e0bac7681 100644
--- a/chart2/source/tools/LegendHelper.cxx
+++ b/chart2/source/tools/LegendHelper.cxx
@@ -114,7 +114,7 @@ uno::Reference< chart2::XLegend > LegendHelper::getLegend(
OSL_FAIL("need diagram for creation of legend");
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/tools/LifeTime.cxx b/chart2/source/tools/LifeTime.cxx
index 4e4f833a2486..75ebc2ac4830 100644
--- a/chart2/source/tools/LifeTime.cxx
+++ b/chart2/source/tools/LifeTime.cxx
@@ -256,11 +256,10 @@ bool CloseableLifeTimeManager::impl_isDisposedOrClosed( bool bAssert )
}
}
}
- catch( uno::Exception& ex )
+ catch( const uno::Exception& )
{
//no mutex is acquired
g_close_endTryClose(bDeliverOwnership, sal_False);
- (void)(ex);
throw;
}
return sal_True;
@@ -384,7 +383,7 @@ bool CloseableLifeTimeManager::impl_isDisposedOrClosed( bool bAssert )
}
}
}
- catch( uno::Exception& ex )
+ catch( const uno::Exception& ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/tools/OPropertySet.cxx b/chart2/source/tools/OPropertySet.cxx
index ce333fd7a7b6..ac16b7ee7756 100644
--- a/chart2/source/tools/OPropertySet.cxx
+++ b/chart2/source/tools/OPropertySet.cxx
@@ -300,7 +300,7 @@ void SAL_CALL OPropertySet::setFastPropertyValue_NoBroadcast
{
aDefault = GetDefaultValue( nHandle );
}
- catch( beans::UnknownPropertyException& )
+ catch( const beans::UnknownPropertyException& )
{
aDefault.clear();
}
@@ -381,7 +381,7 @@ void SAL_CALL OPropertySet::getFastPropertyValue
{
rValue = GetDefaultValue( nHandle );
}
- catch( beans::UnknownPropertyException& )
+ catch( const beans::UnknownPropertyException& )
{
rValue.clear();
}
diff --git a/chart2/source/tools/ObjectIdentifier.cxx b/chart2/source/tools/ObjectIdentifier.cxx
index 885446933d1b..1cdb599ad63a 100644
--- a/chart2/source/tools/ObjectIdentifier.cxx
+++ b/chart2/source/tools/ObjectIdentifier.cxx
@@ -404,7 +404,7 @@ OUString ObjectIdentifier::createClassifiedIdentifierForObject(
//datapoint?
//Gridproperties
}
- catch( uno::Exception& ex)
+ catch(const uno::Exception& ex)
{
ASSERT_EXCEPTION( ex );
}
@@ -1298,7 +1298,7 @@ Reference< beans::XPropertySet > ObjectIdentifier::getObjectPropertySet(
break;
}
}
- catch( uno::Exception& ex)
+ catch(const uno::Exception& ex)
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/tools/RegressionCurveHelper.cxx b/chart2/source/tools/RegressionCurveHelper.cxx
index 116c041edd55..cd17a4ec7347 100644
--- a/chart2/source/tools/RegressionCurveHelper.cxx
+++ b/chart2/source/tools/RegressionCurveHelper.cxx
@@ -207,7 +207,7 @@ void RegressionCurveHelper::initializeCurveCalculator(
}
}
}
- catch( Exception & ex )
+ catch( const Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -261,7 +261,7 @@ bool RegressionCurveHelper::hasMeanValueLine(
return true;
}
}
- catch( Exception & ex )
+ catch( const Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -296,7 +296,7 @@ uno::Reference< chart2::XRegressionCurve >
return aCurves[i];
}
}
- catch( Exception & ex )
+ catch( const Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -352,7 +352,7 @@ void RegressionCurveHelper::removeMeanValueLine(
}
}
}
- catch( Exception & ex )
+ catch( const Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -435,7 +435,7 @@ bool RegressionCurveHelper::removeAllExceptMeanValueLine(
bRemovedSomething = true;
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -469,7 +469,7 @@ void RegressionCurveHelper::removeEquations(
}
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -517,7 +517,7 @@ uno::Reference< chart2::XRegressionCurve > RegressionCurveHelper::getFirstCurveN
}
}
}
- catch( Exception & ex )
+ catch( const Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -564,7 +564,7 @@ RegressionCurveHelper::tRegressionType RegressionCurveHelper::getRegressionType(
}
}
}
- catch( Exception & ex )
+ catch( const Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/tools/ThreeDHelper.cxx b/chart2/source/tools/ThreeDHelper.cxx
index c06c3b71731e..71c8d6a922aa 100644
--- a/chart2/source/tools/ThreeDHelper.cxx
+++ b/chart2/source/tools/ThreeDHelper.cxx
@@ -1217,7 +1217,7 @@ ThreeDLookScheme ThreeDHelper::detectScheme( const uno::Reference< XDiagram >& x
if( xDiagramProps.is() )
xDiagramProps->getPropertyValue( C2U( "D3DSceneShadeMode" ) )>>= aShadeMode;
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -1267,7 +1267,7 @@ void ThreeDHelper::setScheme( const uno::Reference< XDiagram >& xDiagram, ThreeD
lcl_setLightsForScheme( xProp, aScheme );
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -1324,7 +1324,7 @@ void ThreeDHelper::setDefaultIllumination( const uno::Reference< beans::XPropert
xSceneProperties->setPropertyValue( C2U( UNO_NAME_3D_SCENE_LIGHTON_7 ), uno::makeAny( sal_False ) );
xSceneProperties->setPropertyValue( C2U( UNO_NAME_3D_SCENE_LIGHTON_8 ), uno::makeAny( sal_False ) );
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -1371,7 +1371,7 @@ void ThreeDHelper::getRoundedEdgesAndObjectLines(
, aPercentDiagonalPropertyName, uno::makeAny(nPercentDiagonal) ) )
bDifferentRoundedEdges = true;
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
bDifferentRoundedEdges = true;
@@ -1384,7 +1384,7 @@ void ThreeDHelper::getRoundedEdgesAndObjectLines(
, aBorderStylePropertyName, uno::makeAny(aLineStyle) ) )
bDifferentObjectLines = true;
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
bDifferentObjectLines = true;
@@ -1427,7 +1427,7 @@ void ThreeDHelper::getRoundedEdgesAndObjectLines(
else if( aLineStyle == drawing::LineStyle_SOLID )
rnObjectLines = 1;
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
diff --git a/chart2/source/tools/TitleHelper.cxx b/chart2/source/tools/TitleHelper.cxx
index e78bce5ae493..09a4b1822c6d 100644
--- a/chart2/source/tools/TitleHelper.cxx
+++ b/chart2/source/tools/TitleHelper.cxx
@@ -237,7 +237,7 @@ uno::Reference< XTitle > TitleHelper::createTitle(
}
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -329,7 +329,7 @@ void TitleHelper::setCompleteString( const rtl::OUString& rNewText
xProp->setPropertyValue( C2U("CharHeightAsian"), aFontSize );
xProp->setPropertyValue( C2U("CharHeightComplex"), aFontSize );
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/tools/WrappedDefaultProperty.cxx b/chart2/source/tools/WrappedDefaultProperty.cxx
index 216eb7a7c1c9..42d85266c145 100644
--- a/chart2/source/tools/WrappedDefaultProperty.cxx
+++ b/chart2/source/tools/WrappedDefaultProperty.cxx
@@ -81,7 +81,7 @@ beans::PropertyState WrappedDefaultProperty::getPropertyState(
if( m_aOuterDefaultValue == this->convertInnerToOuterValue( aValue ))
aState = beans::PropertyState_DEFAULT_VALUE;
}
- catch( beans::UnknownPropertyException& ex )
+ catch( const beans::UnknownPropertyException& ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/tools/WrappedProperty.cxx b/chart2/source/tools/WrappedProperty.cxx
index 51e13f529594..d073f4d6423f 100644
--- a/chart2/source/tools/WrappedProperty.cxx
+++ b/chart2/source/tools/WrappedProperty.cxx
@@ -135,7 +135,7 @@ beans::PropertyState WrappedProperty::getPropertyState( const Reference< beans::
aState = beans::PropertyState_DEFAULT_VALUE;
}
}
- catch( beans::UnknownPropertyException& ex )
+ catch( const beans::UnknownPropertyException& ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/tools/WrappedPropertySet.cxx b/chart2/source/tools/WrappedPropertySet.cxx
index 5aa996b0b9bc..6a85a3463380 100644
--- a/chart2/source/tools/WrappedPropertySet.cxx
+++ b/chart2/source/tools/WrappedPropertySet.cxx
@@ -126,27 +126,27 @@ void SAL_CALL WrappedPropertySet::setPropertyValue( const OUString& rPropertyNam
#endif
}
}
- catch( beans::UnknownPropertyException& ex )
+ catch( const beans::UnknownPropertyException& ex )
{
throw ex;
}
- catch( beans::PropertyVetoException& ex )
+ catch( const beans::PropertyVetoException& ex )
{
throw ex;
}
- catch( lang::IllegalArgumentException& ex )
+ catch( const lang::IllegalArgumentException& ex )
{
throw ex;
}
- catch( lang::WrappedTargetException& ex )
+ catch( const lang::WrappedTargetException& ex )
{
throw ex;
}
- catch( uno::RuntimeException& ex )
+ catch( const uno::RuntimeException& ex )
{
throw ex;
}
- catch( uno::Exception& ex )
+ catch( const uno::Exception& ex )
{
OSL_FAIL("invalid exception caught in WrappedPropertySet::setPropertyValue");
lang::WrappedTargetException aWrappedException;
@@ -175,19 +175,19 @@ Any SAL_CALL WrappedPropertySet::getPropertyValue( const OUString& rPropertyName
#endif
}
}
- catch( beans::UnknownPropertyException& ex )
+ catch( const beans::UnknownPropertyException& ex )
{
throw ex;
}
- catch( lang::WrappedTargetException& ex )
+ catch( const lang::WrappedTargetException& ex )
{
throw ex;
}
- catch( uno::RuntimeException& ex )
+ catch( const uno::RuntimeException& ex )
{
throw ex;
}
- catch( uno::Exception& ex )
+ catch( const uno::Exception& ex )
{
OSL_FAIL("invalid exception caught in WrappedPropertySet::setPropertyValue");
lang::WrappedTargetException aWrappedException;
@@ -264,7 +264,7 @@ void SAL_CALL WrappedPropertySet::setPropertyValues( const Sequence< OUString >&
{
this->setPropertyValue( aPropertyName, rValueSeq[nN] );
}
- catch( beans::UnknownPropertyException& ex )
+ catch( const beans::UnknownPropertyException& ex )
{
ASSERT_EXCEPTION( ex );
bUnknownProperty = true;
@@ -290,11 +290,11 @@ Sequence< Any > SAL_CALL WrappedPropertySet::getPropertyValues( const Sequence<
::rtl::OUString aPropertyName( rNameSeq[nN] );
aRetSeq[nN] = this->getPropertyValue( aPropertyName );
}
- catch( beans::UnknownPropertyException& ex )
+ catch( const beans::UnknownPropertyException& ex )
{
ASSERT_EXCEPTION( ex );
}
- catch( lang::WrappedTargetException& ex )
+ catch( const lang::WrappedTargetException& ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/view/axes/VAxisProperties.cxx b/chart2/source/view/axes/VAxisProperties.cxx
index dc9398181287..164399da6741 100644
--- a/chart2/source/view/axes/VAxisProperties.cxx
+++ b/chart2/source/view/axes/VAxisProperties.cxx
@@ -294,7 +294,7 @@ void AxisProperties::initAxisPositioning( const uno::Reference< beans::XProperty
m_eTickmarkPos = ::com::sun::star::chart::ChartAxisMarkPosition_AT_LABELS;
}
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -379,7 +379,7 @@ void AxisProperties::init( bool bCartesian )
this->m_aTickmarkPropertiesList.push_back( aTickmarkProperties );
}
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -433,7 +433,7 @@ void AxisLabelProperties::init( const uno::Reference< XAxis >& xAxisModel )
break;
}
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
diff --git a/chart2/source/view/axes/VCartesianAxis.cxx b/chart2/source/view/axes/VCartesianAxis.cxx
index 6056a7d1c32f..b345c47483d3 100644
--- a/chart2/source/view/axes/VCartesianAxis.cxx
+++ b/chart2/source/view/axes/VCartesianAxis.cxx
@@ -1531,7 +1531,7 @@ void VCartesianAxis::updatePositions()
{
xProp->setPropertyValue( C2U( "Transformation" ), aATransformation );
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
diff --git a/chart2/source/view/axes/VCoordinateSystem.cxx b/chart2/source/view/axes/VCoordinateSystem.cxx
index 0a60a77aef61..de7cc0d8729d 100644
--- a/chart2/source/view/axes/VCoordinateSystem.cxx
+++ b/chart2/source/view/axes/VCoordinateSystem.cxx
@@ -571,7 +571,7 @@ bool VCoordinateSystem::getPropertySwapXAndYAxis() const
{
xProp->getPropertyValue( C2U( "SwapXAndYAxis" ) ) >>= bSwapXAndY;
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
diff --git a/chart2/source/view/charttypes/BarChart.cxx b/chart2/source/view/charttypes/BarChart.cxx
index 30f451dcd1a3..2beca1158479 100644
--- a/chart2/source/view/charttypes/BarChart.cxx
+++ b/chart2/source/view/charttypes/BarChart.cxx
@@ -68,7 +68,7 @@ BarChart::BarChart( const uno::Reference<XChartType>& xChartTypeModel
m_xChartTypeModelProps->getPropertyValue( C2U( "GapwidthSequence" ) ) >>= m_aGapwidthSequence;
}
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -292,7 +292,7 @@ uno::Reference< drawing::XShape > BarChart::createDataPoint3D_Bar(
bRoundedEdges = false;
}
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -653,7 +653,7 @@ void BarChart::createShapes()
{
xDataPointProperties->getPropertyValue( C2U( "Geometry3D" )) >>= nGeometry3D;
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
diff --git a/chart2/source/view/charttypes/CandleStickChart.cxx b/chart2/source/view/charttypes/CandleStickChart.cxx
index 4b34cb9f1f61..64bd816a7da6 100644
--- a/chart2/source/view/charttypes/CandleStickChart.cxx
+++ b/chart2/source/view/charttypes/CandleStickChart.cxx
@@ -168,7 +168,7 @@ void CandleStickChart::createShapes()
PropertyMapper::getMultiPropertyListsFromValueMap( aBlackBox_Names, aBlackBox_Values, aBlackBox_Map );
}
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
diff --git a/chart2/source/view/charttypes/PieChart.cxx b/chart2/source/view/charttypes/PieChart.cxx
index c90b31033c81..6c4bb183a516 100644
--- a/chart2/source/view/charttypes/PieChart.cxx
+++ b/chart2/source/view/charttypes/PieChart.cxx
@@ -141,7 +141,7 @@ PieChart::PieChart( const uno::Reference<XChartType>& xChartTypeModel
m_pPosHelper->m_fRingDistance = 0.1;
}
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -415,7 +415,7 @@ void PieChart::createShapes()
{
xPointProperties->getPropertyValue( C2U( "Offset" )) >>= fExplodePercentage;
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -533,7 +533,7 @@ void PieChart::createShapes()
ShapeFactory::setShapeName( xPointShape
, ObjectIdentifier::createPointCID( aPointCIDStub, nPointIndex ) );
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
diff --git a/chart2/source/view/charttypes/VSeriesPlotter.cxx b/chart2/source/view/charttypes/VSeriesPlotter.cxx
index c882e00abf32..5ba19a053012 100644
--- a/chart2/source/view/charttypes/VSeriesPlotter.cxx
+++ b/chart2/source/view/charttypes/VSeriesPlotter.cxx
@@ -494,7 +494,7 @@ uno::Reference< drawing::XShape > VSeriesPlotter::createDataLabel( const uno::Re
xPointProps->getPropertyValue( C2U( "TextRotation" ) ) >>= fRotationDegrees;
}
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -611,7 +611,7 @@ uno::Reference< drawing::XShape > VSeriesPlotter::createDataLabel( const uno::Re
xTextShape->setPosition( aNewTextPos );
}
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -700,7 +700,7 @@ double lcl_getErrorBarLogicLength(
break;
}
}
- catch( uno::Exception & e )
+ catch( const uno::Exception & e )
{
ASSERT_EXCEPTION( e );
}
@@ -912,7 +912,7 @@ void VSeriesPlotter::createErrorBar(
uno::Reference< drawing::XShape > xShape = m_pShapeFactory->createLine2D( xTarget, PolyToPointSequence( aPoly) );
this->setMappedProperties( xShape, xErrorBarProperties, PropertyMapper::getPropertyNameMapForLineProperties() );
}
- catch( uno::Exception & e )
+ catch( const uno::Exception & e )
{
ASSERT_EXCEPTION( e );
}
@@ -2205,7 +2205,7 @@ std::vector< ViewLegendEntry > VSeriesPlotter::createLegendEntriesForSeries(
}
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/view/diagram/VDiagram.cxx b/chart2/source/view/diagram/VDiagram.cxx
index 15b3d46a29cc..73efde66458c 100644
--- a/chart2/source/view/diagram/VDiagram.cxx
+++ b/chart2/source/view/diagram/VDiagram.cxx
@@ -219,7 +219,7 @@ void VDiagram::createShapes_2d()
xProp->setPropertyValue( C2U( UNO_NAME_MISC_OBJ_NAME ), uno::makeAny( aWallCID ) );
}
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -465,7 +465,7 @@ void VDiagram::adjustAspectRatio3d( const awt::Size& rAvailableSize )
m_xAspectRatio3D->setPropertyValue( C2U( UNO_NAME_3D_TRANSFORM_MATRIX )
, uno::makeAny(BaseGFXHelper::B3DHomMatrixToHomogenMatrix( aResult )) );
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -694,7 +694,7 @@ void VDiagram::createShapes_3d()
xShapeProp->setPropertyValue( C2U( UNO_NAME_3D_TRANSFORM_MATRIX )
, uno::makeAny(BaseGFXHelper::B3DHomMatrixToHomogenMatrix(aM)) );
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx
index 64257853a3fd..04c42cd67f64 100644
--- a/chart2/source/view/main/ChartView.cxx
+++ b/chart2/source/view/main/ChartView.cxx
@@ -894,7 +894,7 @@ void SeriesPlotterContainer::setNumberFormatsFromAxes()
}
}
}
- catch( lang::IndexOutOfBoundsException& e )
+ catch( const lang::IndexOutOfBoundsException& e )
{
ASSERT_EXCEPTION( e );
}
@@ -1305,7 +1305,7 @@ void lcl_setDefaultWritingMode( ::boost::shared_ptr< DrawModelWrapper > pDrawMod
pDrawModelWrapper->GetItemPool().SetPoolDefaultItem(SfxInt32Item(EE_PARA_WRITINGDIR, nWritingMode) );
}
}
- catch( uno::Exception& ex )
+ catch( const uno::Exception& ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -1785,7 +1785,7 @@ bool lcl_getPropertySwapXAndYAxis( const uno::Reference< XDiagram >& xDiagram )
{
xProp->getPropertyValue( C2U( "SwapXAndYAxis" ) ) >>= bSwapXAndY;
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -2348,7 +2348,7 @@ void formatPage(
PropertyMapper::setMultiProperties( aNames, aValues, xPageProp );
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -2407,7 +2407,7 @@ void ChartView::impl_refreshAddIn()
xAddIn->refresh();
}
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -2674,7 +2674,7 @@ void ChartView::impl_updateView()
m_bViewUpdatePending = false;
m_bInViewUpdate = false;
}
- catch( uno::Exception& ex)
+ catch( const uno::Exception& ex)
{
m_bViewDirty = m_bViewUpdatePending;
m_bViewUpdatePending = false;
@@ -2786,7 +2786,7 @@ void ChartView::impl_notifyModeChangeListener( const rtl::OUString& rNewMode )
}
}
}
- catch( uno::Exception& ex)
+ catch( const uno::Exception& ex)
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/view/main/DrawModelWrapper.cxx b/chart2/source/view/main/DrawModelWrapper.cxx
index 8fa9dad74d54..f3fe2d8e90ef 100644
--- a/chart2/source/view/main/DrawModelWrapper.cxx
+++ b/chart2/source/view/main/DrawModelWrapper.cxx
@@ -90,7 +90,7 @@ SfxObjectShell * lcl_GetParentObjectShell( const uno::Reference< frame::XModel >
}
}
}
- catch( uno::Exception& )
+ catch( const uno::Exception& )
{
// TODO: error handling
}
diff --git a/chart2/source/view/main/PropertyMapper.cxx b/chart2/source/view/main/PropertyMapper.cxx
index 741504c0ca0e..1221e15c71df 100644
--- a/chart2/source/view/main/PropertyMapper.cxx
+++ b/chart2/source/view/main/PropertyMapper.cxx
@@ -101,7 +101,7 @@ void PropertyMapper::getValueMap(
if( aAny.hasValue() )
rValueMap.insert( tPropertyNameValueMap::value_type( aTarget, aAny ) );
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -373,7 +373,7 @@ void PropertyMapper::setMultiProperties(
bSuccess = true;
}
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e ); //if this occurs more often think of removing the XMultiPropertySet completly for better performance
}
@@ -393,13 +393,13 @@ void PropertyMapper::setMultiProperties(
{
xTarget->setPropertyValue( aPropName, aValue );
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
}
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
diff --git a/chart2/source/view/main/ShapeFactory.cxx b/chart2/source/view/main/ShapeFactory.cxx
index d2f1c6e8c385..40f25366eff3 100644
--- a/chart2/source/view/main/ShapeFactory.cxx
+++ b/chart2/source/view/main/ShapeFactory.cxx
@@ -90,7 +90,7 @@ void ShapeFactory::setShapeName( const uno::Reference< drawing::XShape >& xShape
xProp->setPropertyValue( C2U( UNO_NAME_MISC_OBJ_NAME )
, uno::makeAny( rName ) );
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -111,7 +111,7 @@ rtl::OUString ShapeFactory::getShapeName( const uno::Reference< drawing::XShape
{
xProp->getPropertyValue( C2U( UNO_NAME_MISC_OBJ_NAME ) ) >>= aRet;
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -457,7 +457,7 @@ uno::Reference<drawing::XShape>
bRounded = false;
}
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -521,7 +521,7 @@ uno::Reference<drawing::XShape>
, uno::makeAny(aHM) );
}
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -771,7 +771,7 @@ uno::Reference<drawing::XShape>
xProp->setPropertyValue( C2U( UNO_NAME_3D_REDUCED_LINE_GEOMETRY )
, uno::makeAny((sal_Bool)sal_True) );
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -993,7 +993,7 @@ uno::Reference< drawing::XShape >
xProp->setPropertyValue( C2U( "PolyPolygonBezier" ), uno::makeAny( aCoords ) );
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -1077,7 +1077,7 @@ uno::Reference< drawing::XShape >
xProp->setPropertyValue( C2U( UNO_NAME_3D_TEXTURE_PROJ_Y )
, uno::makeAny( drawing::TextureProjectionMode_OBJECTSPECIFIC ) );
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -1141,7 +1141,7 @@ uno::Reference< drawing::XShape >
if( xSourceProp.is())
PropertyMapper::setMappedProperties( xProp, xSourceProp, rPropertyNameMap );
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -1205,7 +1205,7 @@ uno::Reference< drawing::XShape >
, uno::makeAny(aHM) );
}
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -1245,7 +1245,7 @@ uno::Reference< drawing::XShape >
xProp->setPropertyValue( C2U( UNO_NAME_MISC_OBJ_ZORDER )
, uno::makeAny( sal_Int32(0) ) );
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -1821,7 +1821,7 @@ uno::Reference< drawing::XShape >
xProp->setPropertyValue( C2U( UNO_NAME_FILLCOLOR )
, uno::makeAny( nFillColor ) );
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -1870,7 +1870,7 @@ uno::Reference< drawing::XShape >
{
xProp->setPropertyValue( C2U("Graphic"), uno::makeAny( xGraphic ));
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -1906,7 +1906,7 @@ uno::Reference< drawing::XShapes >
uno::Reference<drawing::XShapes>( xShape, uno::UNO_QUERY );
return xShapes;
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -1943,7 +1943,7 @@ uno::Reference< drawing::XShapes >
xProp->setPropertyValue( C2U( UNO_NAME_3D_TRANSFORM_MATRIX )
, uno::makeAny(B3DHomMatrixToHomogenMatrix(aM)) );
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -1959,7 +1959,7 @@ uno::Reference< drawing::XShapes >
uno::Reference<drawing::XShapes>( xShape, uno::UNO_QUERY );
return xShapes;
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -2005,7 +2005,7 @@ uno::Reference< drawing::XShape >
xProp->setPropertyValue( C2U( UNO_NAME_CIRCKIND )
, uno::makeAny( eKind ) );
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -2066,7 +2066,7 @@ uno::Reference< drawing::XShape >
, rLineProperties.Color );
//, uno::makeAny( sal_Int32( Color(COL_RED).GetColor()) ) );
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -2130,7 +2130,7 @@ uno::Reference< drawing::XShape >
, pLineProperties->DashName );
}
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -2161,7 +2161,7 @@ void ShapeFactory::makeShapeInvisible( const uno::Reference< drawing::XShape >&
xShapeProp->setPropertyValue( C2U("LineStyle"), uno::makeAny( drawing::LineStyle_NONE ));
xShapeProp->setPropertyValue( C2U("FillStyle"), uno::makeAny( drawing::FillStyle_NONE ));
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -2187,7 +2187,7 @@ uno::Reference< drawing::XShape > ShapeFactory::createInvisibleRectangle(
}
return xShape;
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -2230,7 +2230,7 @@ uno::Reference< drawing::XShape >
{
xProp->setPropertyValue( C2U( "Transformation" ), rATransformation );
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
diff --git a/chart2/source/view/main/VDataSeries.cxx b/chart2/source/view/main/VDataSeries.cxx
index b35c2135fb07..db0b2b038563 100644
--- a/chart2/source/view/main/VDataSeries.cxx
+++ b/chart2/source/view/main/VDataSeries.cxx
@@ -246,7 +246,7 @@ VDataSeries::VDataSeries( const uno::Reference< XDataSeries >& xDataSeries )
else if( aRole.equals(C2U("values-size")) )
m_aValues_Bubble_Size.init( xDataSequence );
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -282,7 +282,7 @@ VDataSeries::VDataSeries( const uno::Reference< XDataSeries >& xDataSeries )
if(m_nAxisIndex<0)
m_nAxisIndex=0;
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -622,7 +622,7 @@ sal_Int32 VDataSeries::getLabelPlacement( sal_Int32 nPointIndex, const uno::Refe
OSL_FAIL("no label placement supported");
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -757,7 +757,7 @@ SAL_WNODEPRECATED_DECLARATIONS_PUSH
else
apSymbolProps.reset();
}
- catch( uno::Exception &e)
+ catch(const uno::Exception &e)
{
ASSERT_EXCEPTION( e );
}
@@ -837,7 +837,7 @@ bool VDataSeries::hasPointOwnColor( sal_Int32 index ) const
uno::Reference< beans::XPropertyState > xPointState( this->getPropertiesOfPoint(index), uno::UNO_QUERY_THROW );
return (xPointState->getPropertyState( C2U("Color")) != beans::PropertyState_DEFAULT_VALUE );
}
- catch( uno::Exception& e)
+ catch(const uno::Exception& e)
{
ASSERT_EXCEPTION( e );
}
@@ -888,7 +888,7 @@ SAL_WNODEPRECATED_DECLARATIONS_PUSH
if( !(xProp->getPropertyValue( C2U( "Label" ) ) >>= *apLabel) )
apLabel.reset();
}
- catch( uno::Exception &e)
+ catch(const uno::Exception &e)
{
ASSERT_EXCEPTION( e );
}
diff --git a/chart2/source/view/main/VLegend.cxx b/chart2/source/view/main/VLegend.cxx
index b90568331494..4311619b1685 100644
--- a/chart2/source/view/main/VLegend.cxx
+++ b/chart2/source/view/main/VLegend.cxx
@@ -206,7 +206,7 @@ awt::Size lcl_createTextShapes(
rOutTextShapes.push_back( xEntry );
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -788,7 +788,7 @@ bool lcl_shouldSymbolsBePlacedOnTheLeftSide( const Reference< beans::XPropertySe
}
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -839,7 +839,7 @@ bool VLegend::isVisible( const Reference< XLegend > & xLegend )
Reference< beans::XPropertySet > xLegendProp( xLegend, uno::UNO_QUERY_THROW );
xLegendProp->getPropertyValue( C2U( "Show" )) >>= bShow;
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -963,7 +963,7 @@ void VLegend::createShapes(
xBorder->setSize( aLegendSize );
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
@@ -1017,7 +1017,7 @@ void VLegend::changePosition(
}
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/view/main/VLegendSymbolFactory.cxx b/chart2/source/view/main/VLegendSymbolFactory.cxx
index 85433f59ca93..31b2cbc3146e 100644
--- a/chart2/source/view/main/VLegendSymbolFactory.cxx
+++ b/chart2/source/view/main/VLegendSymbolFactory.cxx
@@ -200,7 +200,7 @@ Reference< drawing::XShape > VLegendSymbolFactory::createSymbol(
}
}
}
- catch( uno::Exception & ex )
+ catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
diff --git a/chart2/source/view/main/VLineProperties.cxx b/chart2/source/view/main/VLineProperties.cxx
index 188c6fcbbf99..77e7f0361ab1 100644
--- a/chart2/source/view/main/VLineProperties.cxx
+++ b/chart2/source/view/main/VLineProperties.cxx
@@ -63,7 +63,7 @@ void VLineProperties::initFromPropertySet( const uno::Reference< beans::XPropert
this->Width = xProp->getPropertyValue( C2U( "BorderWidth" ) );
this->DashName = xProp->getPropertyValue( C2U( "BorderDashName" ) );
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -75,7 +75,7 @@ void VLineProperties::initFromPropertySet( const uno::Reference< beans::XPropert
this->Width = xProp->getPropertyValue( C2U( "LineWidth" ) );
this->DashName = xProp->getPropertyValue( C2U( "LineDashName" ) );
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
diff --git a/chart2/source/view/main/VTitle.cxx b/chart2/source/view/main/VTitle.cxx
index 997a16232bc8..62e24407cc73 100644
--- a/chart2/source/view/main/VTitle.cxx
+++ b/chart2/source/view/main/VTitle.cxx
@@ -112,7 +112,7 @@ void VTitle::changePosition( const awt::Point& rPos )
aM.translate( m_nXPos, m_nYPos);
xShapeProp->setPropertyValue( C2U( "Transformation" ), uno::makeAny( B2DHomMatrixToHomogenMatrix3(aM) ) );
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -184,7 +184,7 @@ void VTitle::createShapes(
{
xTitleProperties->getPropertyValue( C2U( "StackCharacters" ) ) >>= bStackCharacters;
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -265,7 +265,7 @@ void VTitle::createShapes(
xTitleProperties->getPropertyValue( C2U( "TextRotation" ) ) >>= fAngleDegree;
m_fRotationAngleDegree += fAngleDegree;
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}
@@ -279,7 +279,7 @@ void VTitle::createShapes(
aM.translate( m_nXPos, m_nYPos );
xShapeProp->setPropertyValue( C2U( "Transformation" ), uno::makeAny( B2DHomMatrixToHomogenMatrix3(aM) ) );
}
- catch( uno::Exception& e )
+ catch( const uno::Exception& e )
{
ASSERT_EXCEPTION( e );
}