coverity#1158118 Unchecked dynamic_cast
Change-Id: I25cb0dd2d6850565aff8a08e4d3955a497415d93
This commit is contained in:
@@ -216,8 +216,8 @@ void ChartController::executeDispatch_InsertLegend()
|
|||||||
ActionDescriptionProvider::INSERT, SCH_RESSTR( STR_OBJECT_LEGEND )),
|
ActionDescriptionProvider::INSERT, SCH_RESSTR( STR_OBJECT_LEGEND )),
|
||||||
m_xUndoManager );
|
m_xUndoManager );
|
||||||
|
|
||||||
ChartModel* pModel = dynamic_cast<ChartModel*>(getModel().get());
|
ChartModel& rModel = dynamic_cast<ChartModel&>(*getModel().get());
|
||||||
Reference< chart2::XLegend > xLegend = LegendHelper::showLegend( *pModel, m_xCC );
|
Reference< chart2::XLegend > xLegend = LegendHelper::showLegend(rModel, m_xCC);
|
||||||
aUndoGuard.commit();
|
aUndoGuard.commit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user