From 5be6297bac833378437d5cc9992e7fbe8b5eabcf Mon Sep 17 00:00:00 2001 From: WerWolv Date: Wed, 6 Aug 2025 20:49:23 +0200 Subject: [PATCH] fix: Few more build issues --- lib/libimhex/include/hex/test/tests.hpp | 4 ++-- lib/libimhex/source/test/tests.cpp | 2 +- plugins/builtin/source/content/views/view_logs.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/libimhex/include/hex/test/tests.hpp b/lib/libimhex/include/hex/test/tests.hpp index a4a42801f..c8f6cea13 100644 --- a/lib/libimhex/include/hex/test/tests.hpp +++ b/lib/libimhex/include/hex/test/tests.hpp @@ -93,8 +93,8 @@ namespace hex::test { template - TestSequence operator+(const TestSequenceExecutor &executor, F &&f) noexcept { - return TestSequence(executor.getName(), std::forward(f), executor.shouldFail()); + TestSequence operator+(const TestSequenceExecutor &executor, F f) noexcept { + return TestSequence(executor.getName(), std::move(f), executor.shouldFail()); } diff --git a/lib/libimhex/source/test/tests.cpp b/lib/libimhex/source/test/tests.cpp index c33b9165c..5ce4bbe1f 100644 --- a/lib/libimhex/source/test/tests.cpp +++ b/lib/libimhex/source/test/tests.cpp @@ -5,7 +5,7 @@ namespace hex::test { static std::map s_tests; int Tests::addTest(const std::string &name, Function func, bool shouldFail) noexcept { s_tests.insert({ - name, {func, shouldFail} + name, { func, shouldFail } }); return 0; diff --git a/plugins/builtin/source/content/views/view_logs.cpp b/plugins/builtin/source/content/views/view_logs.cpp index b7a9a4c05..99ce05462 100644 --- a/plugins/builtin/source/content/views/view_logs.cpp +++ b/plugins/builtin/source/content/views/view_logs.cpp @@ -60,7 +60,7 @@ namespace hex::plugin::builtin { ImGui::TableNextRow(); ImGui::TableNextColumn(); - ImGui::TextUnformatted(project.begin(), project.end()); + ImGui::TextUnformatted(project.data(), project.data() + project.size()); ImGui::TableNextColumn(); ImGui::PushStyleColor(ImGuiCol_Text, getColor(level).Value); ImGui::TextUnformatted(message.c_str());