coverity#1158120 Unchecked dynamic_cast

Change-Id: I1f23edb102a77acac1e32f6f0c3ca918de2bb16f
This commit is contained in:
Caolán McNamara
2014-06-10 15:32:06 +01:00
parent d2d00424c3
commit 0452160624

View File

@@ -176,8 +176,8 @@ OUString lcl_getDataPointValueText( const Reference< XDataSeries >& xSeries, sal
if( aX.isEmpty() ) if( aX.isEmpty() )
{ {
ChartModel* pModel = dynamic_cast<ChartModel*>(xChartModel.get()); ChartModel& rModel = dynamic_cast<ChartModel&>(*xChartModel.get());
aRet = ExplicitCategoriesProvider::getCategoryByIndex( xCooSys, *pModel, nPointIndex ); aRet = ExplicitCategoriesProvider::getCategoryByIndex( xCooSys, rModel, nPointIndex );
} }
else else
{ {