From 46fe2d296b834da27eef9fa2169c7bb4b398efae Mon Sep 17 00:00:00 2001 From: SweetId <2630750+SweetId@users.noreply.github.com> Date: Wed, 11 Oct 2023 20:40:59 -0400 Subject: [PATCH] fix unused argument warnings --- include/NazaraEditor/Core/Reflection/Core.hpp | 2 +- include/NazaraEditor/Core/Reflection/Graphics.hpp | 4 ++-- include/NazaraEditor/Core/Reflection/Utility.hpp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/NazaraEditor/Core/Reflection/Core.hpp b/include/NazaraEditor/Core/Reflection/Core.hpp index 7bdb26e..079fa97 100644 --- a/include/NazaraEditor/Core/Reflection/Core.hpp +++ b/include/NazaraEditor/Core/Reflection/Core.hpp @@ -124,7 +124,7 @@ namespace Nz namespace EditorImgui { - inline 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()); diff --git a/include/NazaraEditor/Core/Reflection/Graphics.hpp b/include/NazaraEditor/Core/Reflection/Graphics.hpp index 9c01b41..2b37d38 100644 --- a/include/NazaraEditor/Core/Reflection/Graphics.hpp +++ b/include/NazaraEditor/Core/Reflection/Graphics.hpp @@ -32,7 +32,7 @@ namespace Nz namespace EditorImgui { - inline bool Begin(Nz::LightComponent::LightEntry& obj, const std::string& name, const std::string& tooltip) + inline bool Begin(Nz::LightComponent::LightEntry& /*obj*/, const std::string& /*name*/, const std::string& /*tooltip*/) { return false; } @@ -40,7 +40,7 @@ namespace Nz inline void End(Nz::LightComponent::LightEntry&) { } - inline bool Begin(Nz::LightComponent& obj, const std::string& name, const std::string& tooltip) + inline bool Begin(Nz::LightComponent& /*obj*/, const std::string& /*name*/, const std::string& /*tooltip*/) { return ImGui::TreeNode("LightComponent"); } diff --git a/include/NazaraEditor/Core/Reflection/Utility.hpp b/include/NazaraEditor/Core/Reflection/Utility.hpp index 5e37eea..07d6d4e 100644 --- a/include/NazaraEditor/Core/Reflection/Utility.hpp +++ b/include/NazaraEditor/Core/Reflection/Utility.hpp @@ -24,12 +24,12 @@ namespace Nz namespace EditorImgui { - inline bool Begin(Nz::NodeComponent& obj, const std::string& name, const std::string& tooltip) + inline bool Begin(Nz::NodeComponent& /*obj*/, const std::string& /*name*/, const std::string& /*tooltip*/) { return ImGui::TreeNode("NodeComponent"); } - inline void End(Nz::NodeComponent&) { + inline void End(Nz::NodeComponent& /*obj*/) { ImGui::TreePop(); } }