Browse Source

runtime_view_iterator: const correctness

Michele Caini 1 năm trước cách đây
mục cha
commit
75bfbd3b0a
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/entt/entity/runtime_view.hpp

+ 2 - 2
src/entt/entity/runtime_view.hpp

@@ -56,7 +56,7 @@ public:
     }
 
     runtime_view_iterator operator++(int) {
-        runtime_view_iterator orig = *this;
+        const runtime_view_iterator orig = *this;
         return ++(*this), orig;
     }
 
@@ -67,7 +67,7 @@ public:
     }
 
     runtime_view_iterator operator--(int) {
-        runtime_view_iterator orig = *this;
+        const runtime_view_iterator orig = *this;
         return operator--(), orig;
     }