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 authored and dzenanz committed Dec 27, 2024
1 parent ab16e66 commit 42e9ccb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Modules/Core/Common/test/itkSliceIteratorTest.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,12 @@ 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)
for (auto iter = s_container.Begin(); iter < s_container.End(); ++iter)
{
std::cout << *s << ' ';
std::cout << *iter << ' ';
}
std::cout << ']' << std::endl;
}
Expand Down

0 comments on commit 42e9ccb

Please sign in to comment.