[vtk-developers] vtkPointHandleRepresentation3D dead store warning from cppcheck

Sean McBride sean at rogue-research.com
Tue Mar 1 15:53:25 EST 2016


Hi all,

I tried writing to <michael.jeulinl at kitware.com> per git blame, but the address bounces, so...

I'm still toying with enabling cppcheck dead assignment warnings and it found in vtkPointHandleRepresentation3D::StartWidgetInteraction():

  vtkAssemblyPath* path = this->GetAssemblyPath(
    startEventPos[0], startEventPos[1], 0., this->CursorPicker);

  path = this->CursorPicker->GetPath();

from commit ec0732ba83d4f3456737d278e699add0117ec248.

The change made the 1st assignment to 'path' lost... what should this code be doing?

Cheers,

-- 
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada




More information about the vtk-developers mailing list