diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-06-10 15:32:06 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-10 16:08:06 +0100 |
commit | 0452160624cb8501a5203fb90bad69b2a03e50dd (patch) | |
tree | e28f4e61289b01372c4131d7dcd6d583d8ada592 /chart2/source/controller/dialogs/ObjectNameProvider.cxx | |
parent | coverity#1158151 Unchecked dynamic_cast (diff) | |
download | core-0452160624cb8501a5203fb90bad69b2a03e50dd.tar.gz core-0452160624cb8501a5203fb90bad69b2a03e50dd.zip |
coverity#1158120 Unchecked dynamic_cast
Change-Id: I1f23edb102a77acac1e32f6f0c3ca918de2bb16f
Diffstat (limited to 'chart2/source/controller/dialogs/ObjectNameProvider.cxx')
-rw-r--r-- | chart2/source/controller/dialogs/ObjectNameProvider.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/controller/dialogs/ObjectNameProvider.cxx b/chart2/source/controller/dialogs/ObjectNameProvider.cxx index 8dab243e5012..6f0e30738e29 100644 --- a/chart2/source/controller/dialogs/ObjectNameProvider.cxx +++ b/chart2/source/controller/dialogs/ObjectNameProvider.cxx @@ -176,8 +176,8 @@ OUString lcl_getDataPointValueText( const Reference< XDataSeries >& xSeries, sal if( aX.isEmpty() ) { - ChartModel* pModel = dynamic_cast<ChartModel*>(xChartModel.get()); - aRet = ExplicitCategoriesProvider::getCategoryByIndex( xCooSys, *pModel, nPointIndex ); + ChartModel& rModel = dynamic_cast<ChartModel&>(*xChartModel.get()); + aRet = ExplicitCategoriesProvider::getCategoryByIndex( xCooSys, rModel, nPointIndex ); } else { |