Parcourir la source

meta: coding style and nothing more

Michele Caini il y a 2 ans
Parent
commit
00b32cdfe5
1 fichiers modifiés avec 5 ajouts et 5 suppressions
  1. 5 5
      src/entt/meta/meta.hpp

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

@@ -1422,16 +1422,16 @@ public:
 
 
     /**
     /**
      * @brief Wraps an opaque element of the underlying type.
      * @brief Wraps an opaque element of the underlying type.
-     * @param element A valid pointer to an element of the underlying type.
+     * @param elem A valid pointer to an element of the underlying type.
      * @return A wrapper that references the given instance.
      * @return A wrapper that references the given instance.
      */
      */
-    [[nodiscard]] meta_any from_void(void *element) const {
-        return (element && node.from_void) ? node.from_void(*ctx, element, nullptr) : meta_any{meta_ctx_arg, *ctx};
+    [[nodiscard]] meta_any from_void(void *elem) const {
+        return (elem && node.from_void) ? node.from_void(*ctx, elem, nullptr) : meta_any{meta_ctx_arg, *ctx};
     }
     }
 
 
     /*! @copydoc from_void */
     /*! @copydoc from_void */
-    [[nodiscard]] meta_any from_void(const void *element) const {
-        return (element && node.from_void) ? node.from_void(*ctx, nullptr, element) : meta_any{meta_ctx_arg, *ctx};
+    [[nodiscard]] meta_any from_void(const void *elem) const {
+        return (elem && node.from_void) ? node.from_void(*ctx, nullptr, elem) : meta_any{meta_ctx_arg, *ctx};
     }
     }
 
 
     /**
     /**