Kaydet (Commit) 23f6f4fd authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1158115 Unchecked dynamic_cast

Change-Id: Ic37180d32f1308a5065f547584046e31dae88ea0
üst 5cbd7b68
...@@ -950,8 +950,8 @@ void ChartController::impl_switchDiagramPositioningToExcludingPositioning() ...@@ -950,8 +950,8 @@ void ChartController::impl_switchDiagramPositioningToExcludingPositioning()
ActionDescriptionProvider::POS_SIZE, ActionDescriptionProvider::POS_SIZE,
ObjectNameProvider::getName( OBJECTTYPE_DIAGRAM)), ObjectNameProvider::getName( OBJECTTYPE_DIAGRAM)),
m_xUndoManager ); m_xUndoManager );
ChartModel* pModel = dynamic_cast<ChartModel*>(m_aModel->getModel().get()); ChartModel& rModel = dynamic_cast<ChartModel&>(*m_aModel->getModel().get());
if( DiagramHelper::switchDiagramPositioningToExcludingPositioning( *pModel, true, true ) ) if (DiagramHelper::switchDiagramPositioningToExcludingPositioning(rModel, true, true))
aUndoGuard.commit(); aUndoGuard.commit();
} }
......
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