Commit 59dda671 authored by Ken Martin's avatar Ken Martin Committed by Kitware Robot

Merge topic 'graph-reader-warning-fix'

e563c121 Fixed compiler warning in vtkGraphReader.
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: Ken Martin's avatarKen Martin <ken.martin@kitware.com>
Merge-request: !4729
parents 74d94885 e563c121
......@@ -406,7 +406,6 @@ vtkDataObject* vtkGraphReader::CreateOutput(vtkDataObject* currentOutput)
return currentOutput;
}
return vtkDirectedGraph::New();
break;
case vtkGraphReader::UndirectedGraph:
if (currentOutput && currentOutput->IsA("vtkUndirectedGraph"))
......@@ -414,7 +413,6 @@ vtkDataObject* vtkGraphReader::CreateOutput(vtkDataObject* currentOutput)
return currentOutput;
}
return vtkUndirectedGraph::New();
break;
case vtkGraphReader::Molecule:
if (currentOutput && currentOutput->IsA("vtkMolecule"))
......@@ -422,7 +420,6 @@ vtkDataObject* vtkGraphReader::CreateOutput(vtkDataObject* currentOutput)
return currentOutput;
}
return vtkMolecule::New();
break;
default:
vtkErrorMacro("ReadGraphType returned invalid result.");
......
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