Ver código fonte

runtime_view_iterator: const correctness

Michele Caini 1 ano atrás
pai
commit
75bfbd3b0a
1 arquivos alterados com 2 adições e 2 exclusões
  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 operator++(int) {
-        runtime_view_iterator orig = *this;
+        const runtime_view_iterator orig = *this;
         return ++(*this), orig;
         return ++(*this), orig;
     }
     }
 
 
@@ -67,7 +67,7 @@ public:
     }
     }
 
 
     runtime_view_iterator operator--(int) {
     runtime_view_iterator operator--(int) {
-        runtime_view_iterator orig = *this;
+        const runtime_view_iterator orig = *this;
         return operator--(), orig;
         return operator--(), orig;
     }
     }