Skip to content

Commit 1b30940

Browse files
Apply suggestion from @KrisThielemans
Co-authored-by: Kris Thielemans <KrisThielemans@users.noreply.github.com>
1 parent 1a30680 commit 1b30940

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/include/stir/ArrayFunction.inl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,9 +352,9 @@ template <typename elemT>
352352
inline void
353353
find_unique_values(std::set<elemT>& values, const Array<1, elemT>& input)
354354
{
355-
for (int i = input.get_min_index(); i <= input.get_max_index(); ++i)
355+
for (auto& vi : input)
356356
{
357-
values.insert(input[i]);
357+
values.insert(v);
358358
}
359359
}
360360

0 commit comments

Comments
 (0)