summaryrefslogtreecommitdiff
path: root/mm/2s2h/BenGui/BenInputEditorWindow.cpp
diff options
context:
space:
mode:
authorSirius902 <10891979+Sirius902@users.noreply.github.com>2025-01-26 17:59:45 -0800
committerGitHub <noreply@github.com>2025-01-26 20:59:45 -0500
commitc247f969a8ea1f0d075ed12ff5b7dbd2ca1e57ac (patch)
tree87dddda9a7b09fe2f91e498b5f888e4f477c34f1 /mm/2s2h/BenGui/BenInputEditorWindow.cpp
parentcb94159e635a0832bc187ce7523269d8389bd04c (diff)
Add missing string format specifiers (#967)
Diffstat (limited to 'mm/2s2h/BenGui/BenInputEditorWindow.cpp')
-rw-r--r--mm/2s2h/BenGui/BenInputEditorWindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/2s2h/BenGui/BenInputEditorWindow.cpp b/mm/2s2h/BenGui/BenInputEditorWindow.cpp
index 8e3b4334e..6bb0ce028 100644
--- a/mm/2s2h/BenGui/BenInputEditorWindow.cpp
+++ b/mm/2s2h/BenGui/BenInputEditorWindow.cpp
@@ -272,7 +272,7 @@ void BenInputEditorWindow::DrawButtonLineEditMappingButton(uint8_t port, CONTROL
ImGui::OpenPopup(popupId.c_str());
}
if (ImGui::IsItemHovered(ImGuiHoveredFlags_DelayNormal | ImGuiHoveredFlags_NoSharedDelay)) {
- ImGui::SetTooltip(mapping->GetPhysicalDeviceName().c_str());
+ ImGui::SetTooltip("%s", mapping->GetPhysicalDeviceName().c_str());
}
ImGui::PopStyleColor();
ImGui::PopStyleColor();
@@ -544,7 +544,7 @@ void BenInputEditorWindow::DrawStickDirectionLineEditMappingButton(uint8_t port,
ImGui::OpenPopup(popupId.c_str());
}
if (ImGui::IsItemHovered(ImGuiHoveredFlags_DelayNormal | ImGuiHoveredFlags_NoSharedDelay)) {
- ImGui::SetTooltip(mapping->GetPhysicalDeviceName().c_str());
+ ImGui::SetTooltip("%s", mapping->GetPhysicalDeviceName().c_str());
}
ImGui::PopStyleColor();
ImGui::PopStyleColor();
@@ -1112,7 +1112,7 @@ void BenInputEditorWindow::DrawGyroSection(uint8_t port) {
auto id = mapping->GetGyroMappingId();
ImGui::AlignTextToFramePadding();
ImGui::SetNextItemOpen(true, ImGuiCond_Once);
- ImGui::BulletText(mapping->GetPhysicalDeviceName().c_str());
+ ImGui::BulletText("%s", mapping->GetPhysicalDeviceName().c_str());
DrawRemoveGyroMappingButton(port, id);
static float sPitch, sYaw = 0.0f;