From 4e10e60c186219fe4986b2eb5722b140005fd40c Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Thu, 25 Jul 2024 12:32:11 +0200 Subject: [PATCH] meta: rename things to avoid confusion --- src/entt/meta/meta.hpp | 4 ++-- src/entt/meta/node.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/entt/meta/meta.hpp b/src/entt/meta/meta.hpp index 324edfab0..ecf07acb7 100644 --- a/src/entt/meta/meta.hpp +++ b/src/entt/meta/meta.hpp @@ -844,7 +844,7 @@ struct meta_custom { */ template [[nodiscard]] operator const Type *() const noexcept { - return (type_id().hash() == node.type) ? std::static_pointer_cast(node.data).get() : nullptr; + return (type_id().hash() == node.type) ? std::static_pointer_cast(node.value).get() : nullptr; } /** @@ -854,7 +854,7 @@ struct meta_custom { template [[nodiscard]] operator const Type &() const noexcept { ENTT_ASSERT(type_id().hash() == node.type, "Invalid type"); - return *std::static_pointer_cast(node.data); + return *std::static_pointer_cast(node.value); } private: diff --git a/src/entt/meta/node.hpp b/src/entt/meta/node.hpp index 04992e48c..493fd2470 100644 --- a/src/entt/meta/node.hpp +++ b/src/entt/meta/node.hpp @@ -62,7 +62,7 @@ struct meta_type_node; struct meta_custom_node { id_type type{}; - std::shared_ptr data{}; + std::shared_ptr value{}; }; struct meta_prop_node {