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

coverity#1158100 Unchecked dynamic_cast

Change-Id: I3040703b7182d186ac9e27c33295e929b8dc9ffe
üst 0ededb34
...@@ -196,8 +196,8 @@ namespace chart ...@@ -196,8 +196,8 @@ namespace chart
Reference< XChartDocument > xDestination( i_model, UNO_QUERY_THROW ); Reference< XChartDocument > xDestination( i_model, UNO_QUERY_THROW );
// propagate the correct flag for plotting of hidden values to the data provider and all used sequences // propagate the correct flag for plotting of hidden values to the data provider and all used sequences
ChartModel* pModel = dynamic_cast<ChartModel*>(i_model.get()); ChartModel& rModel = dynamic_cast<ChartModel&>(*i_model.get());
ChartModelHelper::setIncludeHiddenCells( ChartModelHelper::isIncludeHiddenCells( i_modelToCopyFrom ) , *pModel ); ChartModelHelper::setIncludeHiddenCells(ChartModelHelper::isIncludeHiddenCells( i_modelToCopyFrom ), rModel);
// diagram // diagram
xDestination->setFirstDiagram( xSource->getFirstDiagram() ); xDestination->setFirstDiagram( xSource->getFirstDiagram() );
......
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