Browse Source

meta: minor changes

Michele Caini 3 years ago
parent
commit
6ad7424d4a
1 changed files with 2 additions and 4 deletions
  1. 2 4
      src/entt/meta/meta.hpp

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

@@ -941,13 +941,11 @@ private:
 class meta_type: private internal::meta_common {
     template<typename Func>
     [[nodiscard]] auto lookup(meta_any *const args, const typename internal::meta_type_node::size_type sz, Func next) const {
-        using element_type = decltype(next());
-
-        element_type candidate = nullptr;
+        decltype(next()) candidate = nullptr;
         size_type extent{sz + 1u};
         bool ambiguous{};
 
-        for(element_type curr = next(); curr; curr = next()) {
+        for(auto curr = next(); curr; curr = next()) {
             if(curr->arity == sz) {
                 size_type direct{};
                 size_type ext{};