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

coverity#1267657 Logically dead code

Change-Id: I50bb5d47c5f430818237308a691306dc097d245e
üst 3e05f984
...@@ -87,8 +87,7 @@ drawing::Direction3D BarChart::getPreferredDiagramAspectRatio() const ...@@ -87,8 +87,7 @@ drawing::Direction3D BarChart::getPreferredDiagramAspectRatio() const
{ {
aRet = drawing::Direction3D(1.0,-1.0,1.0); aRet = drawing::Direction3D(1.0,-1.0,1.0);
BarPositionHelper* pPosHelper = dynamic_cast<BarPositionHelper*>(&( this->getPlottingPositionHelper( MAIN_AXIS_INDEX) ) ); BarPositionHelper* pPosHelper = dynamic_cast<BarPositionHelper*>(&( this->getPlottingPositionHelper( MAIN_AXIS_INDEX) ) );
assert(pPosHelper); if (pPosHelper)
if(pPosHelper)
{ {
drawing::Direction3D aScale( pPosHelper->getScaledLogicWidth() ); drawing::Direction3D aScale( pPosHelper->getScaledLogicWidth() );
if(aScale.DirectionX!=0.0) if(aScale.DirectionX!=0.0)
......
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