Skip to content

Commit

Permalink
runtime_view_iterator: const correctness
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Jan 21, 2025
1 parent 27358e6 commit 75bfbd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/entt/entity/runtime_view.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class runtime_view_iterator final {
}

runtime_view_iterator operator++(int) {
runtime_view_iterator orig = *this;
const runtime_view_iterator orig = *this;
return ++(*this), orig;
}

Expand All @@ -67,7 +67,7 @@ class runtime_view_iterator final {
}

runtime_view_iterator operator--(int) {
runtime_view_iterator orig = *this;
const runtime_view_iterator orig = *this;
return operator--(), orig;
}

Expand Down

0 comments on commit 75bfbd3

Please sign in to comment.