From 1d641504b1937d5d518656f64710ed4213122641 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Tue, 31 Dec 2024 10:01:01 +0100 Subject: [PATCH] fix: Format string issues --- plugins/diffing/source/content/views/view_diff.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/diffing/source/content/views/view_diff.cpp b/plugins/diffing/source/content/views/view_diff.cpp index ceff7d11c..1d5afecbb 100644 --- a/plugins/diffing/source/content/views/view_diff.cpp +++ b/plugins/diffing/source/content/views/view_diff.cpp @@ -309,15 +309,15 @@ namespace hex::plugin::diffing { switch (typeA) { case DifferenceType::Mismatch: ImGuiExt::TextFormattedColored(ImGuiExt::GetCustomColorVec4(ImGuiCustomCol_DiffChanged), ICON_VS_DIFF_MODIFIED); - ImGui::SetItemTooltip("hex.diffing.view.diff.modified"_lang); + ImGui::SetItemTooltip("%s", "hex.diffing.view.diff.modified"_lang.get()); break; case DifferenceType::Insertion: ImGuiExt::TextFormattedColored(ImGuiExt::GetCustomColorVec4(ImGuiCustomCol_DiffAdded), ICON_VS_DIFF_ADDED); - ImGui::SetItemTooltip("hex.diffing.view.diff.added"_lang); + ImGui::SetItemTooltip("%s", "hex.diffing.view.diff.added"_lang.get()); break; case DifferenceType::Deletion: ImGuiExt::TextFormattedColored(ImGuiExt::GetCustomColorVec4(ImGuiCustomCol_DiffRemoved), ICON_VS_DIFF_REMOVED); - ImGui::SetItemTooltip("hex.diffing.view.diff.removed"_lang); + ImGui::SetItemTooltip("%s", "hex.diffing.view.diff.removed"_lang.get()); break; default: break;