From efadea76ae22e8b8213ca6613742b81817b08041 Mon Sep 17 00:00:00 2001 From: SweetId <2630750+SweetId@users.noreply.github.com> Date: Sun, 8 Oct 2023 22:28:30 -0400 Subject: [PATCH] fix warnings --- include/NazaraEditor/Core/Reflection/Core.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/NazaraEditor/Core/Reflection/Core.hpp b/include/NazaraEditor/Core/Reflection/Core.hpp index b0bd625..31af127 100644 --- a/include/NazaraEditor/Core/Reflection/Core.hpp +++ b/include/NazaraEditor/Core/Reflection/Core.hpp @@ -78,24 +78,24 @@ namespace Nz namespace EditorImgui { template - static bool Begin(ArrayEntry& obj, const std::string& name, const std::string& tooltip) + inline bool Begin(ArrayEntry& obj, const std::string& name, const std::string& tooltip) { ImGui::BeginGroup(); } template - static void End(ArrayEntry&) { + inline void End(ArrayEntry&) { ImGui::EndGroup(); } template - static bool Begin(std::array& obj, const std::string& name, const std::string& tooltip) + inline bool Begin(std::array& obj, const std::string& name, const std::string& tooltip) { return ImGui::TreeNode(name.c_str()); } template - static void End(std::array&) { + inline void End(std::array&) { ImGui::TreePop(); } } @@ -123,13 +123,13 @@ namespace Nz namespace EditorImgui { - static bool Begin(entt::handle& obj, const std::string& name, const std::string& tooltip) + inline bool Begin(entt::handle& obj, const std::string& name, const std::string& tooltip) { std::string n = "Entity " + name; return ImGui::TreeNode(n.c_str()); } - static void End(entt::handle&) { + inline void End(entt::handle&) { ImGui::TreePop(); } }