Skip to content

Commit

Permalink
STYLE: Remove unneeded object instantiation in testUpdateColorMapByMa…
Browse files Browse the repository at this point in the history
…gnitude
  • Loading branch information
jcfr committed Nov 4, 2018
1 parent a30ee57 commit 45fe8ec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Testing/testUpdateColorMapByMagnitude.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ bool TestShapePopulationBase::testUpdateColorMapByMagnitude(std::string filename
actors->InitTraversal();
vtkMapper* mapper = actors->GetNextActor()->GetMapper();
vtkScalarsToColors* scalarsToColors = mapper->GetLookupTable();
vtkSmartPointer<vtkColorTransferFunction> DistanceMapTFunc = vtkSmartPointer<vtkColorTransferFunction>::New();
DistanceMapTFunc = (vtkColorTransferFunction *)scalarsToColors;
vtkColorTransferFunction* DistanceMapTFunc = vtkColorTransferFunction::SafeDownCast(scalarsToColors);
double range = fabs(shapePopulationBase->m_usedColorBar->range[1] - shapePopulationBase->m_usedColorBar->range[0]);
for (unsigned int j = 0; j < shapePopulationBase->m_usedColorBar->colorPointList.size(); j++)
{
Expand Down

0 comments on commit 45fe8ec

Please sign in to comment.