Commit 43fa8b72 authored by Bill Lorensen's avatar Bill Lorensen
Browse files

COMP: Performance warning: int to bool

Windows compilers warn
"'int' : forcing value to bool 'true' or 'false' (performance
warning)"

Change-Id: I5d3dd60637e2e4c04b9ae111cde9750ea9b8d812
parent 6197358f
......@@ -460,7 +460,7 @@ int vtkParticleTracerBase::InitializeInterpolator()
inp->ComputeBounds();
inp->GetBounds(&bbox.b[0]);
this->CachedBounds[T].push_back(bbox);
bool static_dataset = this->StaticMesh;
bool static_dataset = this->StaticMesh == 0 ? false : true;
this->AllFixedGeometry = this->AllFixedGeometry && static_dataset;
// add the dataset to the interpolator
this->Interpolator->SetDataSetAtTime(index++, T, this->GetCacheDataTime(T), inp, static_dataset);
......
......@@ -409,7 +409,7 @@ int vtkTemporalStreamTracer::InitializeInterpolator()
inp->ComputeBounds();
inp->GetBounds(&bbox.b[0]);
this->CachedBounds[T].push_back(bbox);
bool static_dataset = this->StaticMesh;
bool static_dataset = this->StaticMesh == 0 ? false : true;
this->AllFixedGeometry = this->AllFixedGeometry && static_dataset;
// add the dataset to the interpolator
this->Interpolator->SetDataSetAtTime(index++, T, this->CurrentTimeSteps[T], inp, static_dataset);
......
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