Преглед изворни кода

meta: avoid shadow warnings

Michele Caini пре 5 година
родитељ
комит
63c983683c
1 измењених фајлова са 4 додато и 4 уклоњено
  1. 4 4
      src/entt/meta/meta.hpp

+ 4 - 4
src/entt/meta/meta.hpp

@@ -1005,14 +1005,14 @@ private:
 /*! @brief Opaque wrapper for meta types. */
 class meta_type {
     bool can_cast_or_convert(const meta_type type, const type_info info) const ENTT_NOEXCEPT {
-        for(auto conv: type.conv()) {
-            if(conv.type().info() == info) {
+        for(auto curr: type.conv()) {
+            if(curr.type().info() == info) {
                 return true;
             }
         }
 
-        for(auto base: type.base()) {
-            if(base.type().info() == info || can_cast_or_convert(base.type(), info)) {
+        for(auto curr: type.base()) {
+            if(curr.type().info() == info || can_cast_or_convert(curr.type(), info)) {
                 return true;
             }
         }