Skip to content

Commit

Permalink
STYLE: PrintSlice re-used variable name
Browse files Browse the repository at this point in the history
The variable name s was used as an input and a loop variable.
Split the names to clearly indicate the iteration variable
intent.
  • Loading branch information
hjmjohnson committed Dec 22, 2024
1 parent ac77fef commit 6e57af1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Modules/Core/Common/test/itkSliceIteratorTest.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,14 @@ PrintRegion(itk::SmartPointer<itk::Image<TPixelType, VDimension>> I)

template <typename TContainer>
void
PrintSlice(TContainer s)
PrintSlice(TContainer s_container)
{
std::cout << '[';
for (s = s.Begin(); s < s.End(); ++s)
std::cout << "[\n";
for (auto iter = s_container.Begin(); iter < s_container.End(); ++iter)
{
std::cout << *s << ' ';
std::cout << *iter << ' ';
}
std::cout << ']' << std::endl;
std::cout << "]\n";
}


Expand Down

0 comments on commit 6e57af1

Please sign in to comment.