1
0
mirror of synced 2025-01-11 05:42:15 +01:00

fix: Format string issues

This commit is contained in:
WerWolv 2024-12-31 10:01:01 +01:00
parent 655e068b9b
commit 1d641504b1

View File

@ -309,15 +309,15 @@ namespace hex::plugin::diffing {
switch (typeA) { switch (typeA) {
case DifferenceType::Mismatch: case DifferenceType::Mismatch:
ImGuiExt::TextFormattedColored(ImGuiExt::GetCustomColorVec4(ImGuiCustomCol_DiffChanged), ICON_VS_DIFF_MODIFIED); 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; break;
case DifferenceType::Insertion: case DifferenceType::Insertion:
ImGuiExt::TextFormattedColored(ImGuiExt::GetCustomColorVec4(ImGuiCustomCol_DiffAdded), ICON_VS_DIFF_ADDED); 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; break;
case DifferenceType::Deletion: case DifferenceType::Deletion:
ImGuiExt::TextFormattedColored(ImGuiExt::GetCustomColorVec4(ImGuiCustomCol_DiffRemoved), ICON_VS_DIFF_REMOVED); 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; break;
default: default:
break; break;