Skip to content

Commit

Permalink
fix: Format string issues
Browse files Browse the repository at this point in the history
  • Loading branch information
WerWolv committed Dec 31, 2024
1 parent 655e068 commit 1d64150
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/diffing/source/content/views/view_diff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1d64150

Please sign in to comment.