Kaydet (Commit) 16738ab4 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1158121 Unchecked dynamic_cast

Change-Id: I961c3da368c1f2bffb4c116c325a82cf7619cf15
üst 33dc3432
...@@ -793,6 +793,8 @@ void DataBrowserModel::updateFromModel() ...@@ -793,6 +793,8 @@ void DataBrowserModel::updateFromModel()
{ {
Reference< frame::XModel > xChartModel( m_xChartDocument, uno::UNO_QUERY ); Reference< frame::XModel > xChartModel( m_xChartDocument, uno::UNO_QUERY );
ChartModel* pModel = dynamic_cast<ChartModel*>(xChartModel.get()); ChartModel* pModel = dynamic_cast<ChartModel*>(xChartModel.get());
if (!pModel)
return;
ExplicitCategoriesProvider aExplicitCategoriesProvider( ChartModelHelper::getFirstCoordinateSystem(xChartModel), *pModel ); ExplicitCategoriesProvider aExplicitCategoriesProvider( ChartModelHelper::getFirstCoordinateSystem(xChartModel), *pModel );
const Sequence< Reference< chart2::data::XLabeledDataSequence> >& rSplitCategoriesList( aExplicitCategoriesProvider.getSplitCategoriesList() ); const Sequence< Reference< chart2::data::XLabeledDataSequence> >& rSplitCategoriesList( aExplicitCategoriesProvider.getSplitCategoriesList() );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment