diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-06-10 15:34:23 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-10 16:08:07 +0100 |
commit | 5cbd7b68b93961e706df6e75ea4ab85a9c301a6a (patch) | |
tree | f0ba9d7334258bdb082f02e1d849fb2578db03ab /chart2/source/controller/main/ChartController_Insert.cxx | |
parent | 6d166057c95f11f306fb1ccc5730af5b0b2f361f (diff) |
coverity#1158117 Unchecked dynamic_cast
Change-Id: I0d78af6a9aa1f206ceaf0cc9942c2a1e450ea980
Diffstat (limited to 'chart2/source/controller/main/ChartController_Insert.cxx')
-rw-r--r-- | chart2/source/controller/main/ChartController_Insert.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/controller/main/ChartController_Insert.cxx b/chart2/source/controller/main/ChartController_Insert.cxx index 3abb851ab976..610bfae12bb7 100644 --- a/chart2/source/controller/main/ChartController_Insert.cxx +++ b/chart2/source/controller/main/ChartController_Insert.cxx @@ -204,8 +204,8 @@ void ChartController::executeDispatch_DeleteLegend() ActionDescriptionProvider::DELETE, SCH_RESSTR( STR_OBJECT_LEGEND )), m_xUndoManager ); - ChartModel* pModel = dynamic_cast<ChartModel*>(getModel().get()); - LegendHelper::hideLegend( *pModel ); + ChartModel& rModel = dynamic_cast<ChartModel&>(*getModel().get()); + LegendHelper::hideLegend(rModel); aUndoGuard.commit(); } |