Commit 8030e75b authored by David E. DeMarle's avatar David E. DeMarle Committed by Kitware Robot

Merge topic 'fix-comp-warning'

92c2a3ec Fix a cppcheck compilation warning
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Reviewed-by: David Gobbi's avatarDavid Gobbi <david.gobbi@gmail.com>
Merge-request: !4689
parents 1394512b 92c2a3ec
......@@ -354,13 +354,9 @@ namespace
// Advance through and mark all cells with a label EQUAL TO the
// current selection id, as well as their points.
bool idEqualToLabel = false;
if (labelArrayIndex < numCells)
{
idEqualToLabel =
(id[idArrayIndex] == static_cast<T1>(label[labelArrayIndex]));
}
while ((labelArrayIndex < numCells) && idEqualToLabel)
bool idEqualToLabel =
(id[idArrayIndex] == static_cast<T1>(label[labelArrayIndex]));
while (idEqualToLabel)
{
vtkIdType cellId = idxArray->GetValue(labelArrayIndex);
cellInArray->SetValue(cellId, flag);
......@@ -503,13 +499,9 @@ namespace
// Advance through and mark all points with a label EQUAL TO the
// current selection id, as well as their cells.
bool idEqualToLabel = false;
if (labelArrayIndex < numPts)
{
idEqualToLabel =
(id[idArrayIndex] == static_cast<T1>(label[labelArrayIndex]));
}
while ((labelArrayIndex < numPts) && idEqualToLabel)
bool idEqualToLabel =
(id[idArrayIndex] == static_cast<T1>(label[labelArrayIndex]));
while (idEqualToLabel)
{
vtkIdType ptId = idxArray->GetValue(labelArrayIndex);
pointInArray->SetValue(ptId, flag);
......
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