From 2e201c3a6053194be2ecddad1de7d1a42a8a5733 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Thu, 9 Jan 2025 16:05:11 +0100 Subject: [PATCH] meta: minor changes to prepare to cleanup further --- src/entt/meta/meta.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/entt/meta/meta.hpp b/src/entt/meta/meta.hpp index 8eb5999b3..a0420cfb9 100644 --- a/src/entt/meta/meta.hpp +++ b/src/entt/meta/meta.hpp @@ -1234,7 +1234,7 @@ public: * doesn't refer to a pointer type. */ [[nodiscard]] meta_type remove_pointer() const noexcept { - return (ctx != nullptr) ? meta_type{*ctx, node.remove_pointer(internal::meta_context::from(*ctx))} : *this; + return (node.remove_pointer != nullptr) ? meta_type{*ctx, node.remove_pointer(internal::meta_context::from(*ctx))} : *this; } /** @@ -1579,7 +1579,7 @@ inline bool meta_any::assign(meta_any &&other) { } [[nodiscard]] inline meta_type meta_data::type() const noexcept { - return (ctx != nullptr) ? meta_type{*ctx, node.type(internal::meta_context::from(*ctx))} : meta_type{}; + return (node.type != nullptr) ? meta_type{*ctx, node.type(internal::meta_context::from(*ctx))} : meta_type{}; } [[nodiscard]] inline meta_type meta_data::arg(const size_type index) const noexcept { @@ -1587,7 +1587,7 @@ inline bool meta_any::assign(meta_any &&other) { } [[nodiscard]] inline meta_type meta_func::ret() const noexcept { - return (ctx != nullptr) ? meta_type{*ctx, node.ret(internal::meta_context::from(*ctx))} : meta_type{}; + return (node.ret != nullptr) ? meta_type{*ctx, node.ret(internal::meta_context::from(*ctx))} : meta_type{}; } [[nodiscard]] inline meta_type meta_func::arg(const size_type index) const noexcept {