[Libreoffice-commits] .: 2 commits - automation/source basic/source chart2/source

Takeshi Abe tabe at kemper.freedesktop.org
Mon Nov 28 17:08:00 PST 2011


 automation/source/testtool/comm_bas.cxx                                         |    3 
 basic/source/app/processw.cxx                                                   |    2 
 basic/source/classes/sbunoobj.cxx                                               |   14 ---
 basic/source/sample/object.cxx                                                  |    2 
 basic/source/uno/scriptcont.cxx                                                 |    2 
 chart2/source/controller/chartapiwrapper/AxisWrapper.cxx                        |    2 
 chart2/source/controller/chartapiwrapper/DataSeriesPointWrapper.cxx             |    3 
 chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx                     |    8 -
 chart2/source/controller/chartapiwrapper/GridWrapper.cxx                        |    2 
 chart2/source/controller/chartapiwrapper/MinMaxLineWrapper.cxx                  |    2 
 chart2/source/controller/chartapiwrapper/UpDownBarWrapper.cxx                   |    2 
 chart2/source/controller/chartapiwrapper/WrappedAutomaticPositionProperties.cxx |    2 
 chart2/source/controller/chartapiwrapper/WrappedScaleTextProperties.cxx         |    2 
 chart2/source/controller/chartapiwrapper/WrappedStockProperties.cxx             |    2 
 chart2/source/controller/chartapiwrapper/WrappedSymbolProperties.cxx            |    4 
 chart2/source/controller/dialogs/ChartTypeDialogController.cxx                  |    4 
 chart2/source/controller/dialogs/DialogModel.cxx                                |   18 ++--
 chart2/source/controller/dialogs/ObjectNameProvider.cxx                         |    2 
 chart2/source/controller/dialogs/RangeSelectionHelper.cxx                       |    6 -
 chart2/source/controller/dialogs/res_ErrorBar.cxx                               |    2 
 chart2/source/controller/dialogs/res_LegendPosition.cxx                         |    4 
 chart2/source/controller/dialogs/tp_ChartType.cxx                               |    2 
 chart2/source/controller/dialogs/tp_DataSource.cxx                              |    4 
 chart2/source/controller/drawinglayer/DrawViewWrapper.cxx                       |    2 
 chart2/source/controller/drawinglayer/ViewElementListProvider.cxx               |    2 
 chart2/source/controller/itemsetwrapper/CharacterPropertyItemConverter.cxx      |    4 
 chart2/source/controller/itemsetwrapper/DataPointItemConverter.cxx              |    8 -
 chart2/source/controller/itemsetwrapper/ErrorBarItemConverter.cxx               |    4 
 chart2/source/controller/itemsetwrapper/GraphicPropertyItemConverter.cxx        |    4 
 chart2/source/controller/itemsetwrapper/ItemConverter.cxx                       |   11 +-
 chart2/source/controller/itemsetwrapper/LegendItemConverter.cxx                 |    2 
 chart2/source/controller/itemsetwrapper/SeriesOptionsItemConverter.cxx          |    4 
 chart2/source/controller/itemsetwrapper/StatisticsItemConverter.cxx             |    6 -
 chart2/source/controller/main/ChartController.cxx                               |    8 -
 chart2/source/controller/main/ChartController_Insert.cxx                        |   28 +++---
 chart2/source/controller/main/ChartController_Position.cxx                      |    2 
 chart2/source/controller/main/ChartController_Properties.cxx                    |    6 -
 chart2/source/controller/main/ChartController_Tools.cxx                         |    2 
 chart2/source/controller/main/ChartController_Window.cxx                        |    4 
 chart2/source/controller/main/ChartFrameloader.cxx                              |    2 
 chart2/source/controller/main/ChartRenderer.cxx                                 |    2 
 chart2/source/controller/main/ControllerCommandDispatch.cxx                     |    4 
 chart2/source/controller/main/ObjectHierarchy.cxx                               |    4 
 chart2/source/controller/main/ShapeController.cxx                               |    4 
 chart2/source/model/main/ChartModel_Persistence.cxx                             |   16 +--
 chart2/source/model/template/AreaChartTypeTemplate.cxx                          |    4 
 chart2/source/model/template/BarChartTypeTemplate.cxx                           |    4 
 chart2/source/model/template/BubbleChartTypeTemplate.cxx                        |    4 
 chart2/source/model/template/BubbleDataInterpreter.cxx                          |    6 -
 chart2/source/model/template/ChartTypeManager.cxx                               |    2 
 chart2/source/model/template/ChartTypeTemplate.cxx                              |   10 +-
 chart2/source/model/template/ColumnLineChartTypeTemplate.cxx                    |    6 -
 chart2/source/model/template/DataInterpreter.cxx                                |   12 +-
 chart2/source/model/template/LineChartTypeTemplate.cxx                          |   10 +-
 chart2/source/model/template/NetChartTypeTemplate.cxx                           |    6 -
 chart2/source/model/template/PieChartTypeTemplate.cxx                           |   12 +-
 chart2/source/model/template/ScatterChartTypeTemplate.cxx                       |   10 +-
 chart2/source/model/template/StockChartTypeTemplate.cxx                         |    8 -
 chart2/source/model/template/StockDataInterpreter.cxx                           |    4 
 chart2/source/model/template/XYDataInterpreter.cxx                              |    6 -
 chart2/source/tools/AxisHelper.cxx                                              |    8 -
 chart2/source/tools/ChartModelHelper.cxx                                        |    4 
 chart2/source/tools/ChartViewHelper.cxx                                         |    2 
 chart2/source/tools/DataSeriesHelper.cxx                                        |   21 ++---
 chart2/source/tools/DiagramHelper.cxx                                           |   38 ++++-----
 chart2/source/tools/FormattedStringHelper.cxx                                   |    2 
 chart2/source/tools/LegendHelper.cxx                                            |    2 
 chart2/source/tools/LifeTime.cxx                                                |    5 -
 chart2/source/tools/OPropertySet.cxx                                            |    4 
 chart2/source/tools/ObjectIdentifier.cxx                                        |    4 
 chart2/source/tools/RegressionCurveHelper.cxx                                   |   16 +--
 chart2/source/tools/ThreeDHelper.cxx                                            |   12 +-
 chart2/source/tools/TitleHelper.cxx                                             |    4 
 chart2/source/tools/WrappedDefaultProperty.cxx                                  |    2 
 chart2/source/tools/WrappedProperty.cxx                                         |    2 
 chart2/source/tools/WrappedPropertySet.cxx                                      |   26 +++---
 chart2/source/view/axes/VAxisProperties.cxx                                     |    6 -
 chart2/source/view/axes/VCartesianAxis.cxx                                      |    2 
 chart2/source/view/axes/VCoordinateSystem.cxx                                   |    2 
 chart2/source/view/charttypes/BarChart.cxx                                      |    6 -
 chart2/source/view/charttypes/CandleStickChart.cxx                              |    2 
 chart2/source/view/charttypes/PieChart.cxx                                      |    6 -
 chart2/source/view/charttypes/VSeriesPlotter.cxx                                |   10 +-
 chart2/source/view/diagram/VDiagram.cxx                                         |    6 -
 chart2/source/view/main/ChartView.cxx                                           |   14 +--
 chart2/source/view/main/DrawModelWrapper.cxx                                    |    2 
 chart2/source/view/main/PropertyMapper.cxx                                      |    8 -
 chart2/source/view/main/ShapeFactory.cxx                                        |   42 +++++-----
 chart2/source/view/main/VDataSeries.cxx                                         |   12 +-
 chart2/source/view/main/VLegend.cxx                                             |   10 +-
 chart2/source/view/main/VLegendSymbolFactory.cxx                                |    2 
 chart2/source/view/main/VLineProperties.cxx                                     |    4 
 chart2/source/view/main/VTitle.cxx                                              |    8 -
 93 files changed, 297 insertions(+), 324 deletions(-)

New commits:
commit 1aae826501c9a26d40b0827e69d84f680dff6a6b
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date:   Tue Nov 29 02:06:57 2011 +0900

    catch by const reference

diff --git a/chart2/source/controller/chartapiwrapper/AxisWrapper.cxx b/chart2/source/controller/chartapiwrapper/AxisWrapper.cxx
index b3202ff..ce1021d 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 b54be6b..60a76e1 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 2f1bcfe..46bb9a1 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 d7d51af..4a757df 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 21abdf6..f81f2eb 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 ade86bf..04b78ad 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 f61574a..c08412f 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 811faed..7dc3da1 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 c3faeeb..bd1ed55 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 25b87f9..c0f1751 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 cea253b..1dae363 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 38d619a..e0abe6d 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 23d599e..ee0e61d 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 a518394..be7783c 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 6dc3c88..ed1f5e8 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 e8a0487..4755e04 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 3139349..8952f2f 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 b0a66c5..2deb405 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 609fb83..8359aa2 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 572a3c6..4824cc3 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 cb47280..ec69b4c 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 db5a896..27d8b9e 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 5d525b7..c9d290e 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 374cdc2..c173ad2 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 5885ef4..dae0ad4 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 fff2ddc..774bad3 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 405b5bf..4b32929 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 c87cd7f..797df1e 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 8faaf75..31ad274 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 99960e9..f398522 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 73828ed..f4dcb03 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 8f81464..4697458 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 10cfa83..51021ee 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 699a3f3..84fb32e 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 80f697c..1ded912 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 27b45f4..a6179c1 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 66837ae..1a37a1c 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 d2ed048..d059c1a 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 0623942..5878e4c 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 f452a37..de820b9 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 7920fde..3212cc4 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 f5c43ea..450f12d 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 004558f..abb8f5e 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 84d8407..d7e6eae 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 e2273e0..adb1682 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 025f27c..0fe079e 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 d4e5ba5..4b67fc6 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 219b667..f4354c1 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 6c8d4af..7b352ac 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 1a5bad9..d59ef83 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 c7765a1..41709c0 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 0d15aec..62b1de1 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 39881b7..f0490a0 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 ba169d8..9609710 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 f44450c..8130288 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 1c29b82..c193354 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 b0265ba..04399e9 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 fb26f8a..22e8c73 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 495e60b..ab0a471 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 2fa44cb..3664e96 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 b6cf2a9..6f20517 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 82ba82a..787e0ba 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 4e4f833..75ebc2a 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 ce333fd..ac16b7e 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 8854469..1cdb599 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 116c041..cd17a4e 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 c06c3b7..71c8d6a 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 e78bce5..09a4b18 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 216eb7a..42d8526 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 51e13f5..d073f4d 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 5aa996b..6a85a34 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 dc93981..164399d 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 6056a7d..b345c47 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 0a60a77..de7cc0d 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 30f451d..2beca11 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 4b34cb9..64bd816 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 c90b310..6c4bb18 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 c882e00..5ba19a0 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 15b3d46..73efde6 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 6425785..04c42cd 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;

... etc. - the rest is truncated


More information about the Libreoffice-commits mailing list