From 332983c97b7a729c4dc5f19aa9ee4a22c420f7d8 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Tue, 27 Jun 2023 20:23:44 +1000 Subject: The Formatting String Catastrophe --- source/frontend/StarTeamBar.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/frontend/StarTeamBar.cpp') diff --git a/source/frontend/StarTeamBar.cpp b/source/frontend/StarTeamBar.cpp index 48a9b51..6091d9c 100644 --- a/source/frontend/StarTeamBar.cpp +++ b/source/frontend/StarTeamBar.cpp @@ -159,7 +159,7 @@ void TeamBar::buildTeamBar() { continue; } - String cellName = strf("%s", controlIndex); + String cellName = strf("{}", controlIndex); WidgetPtr cell = list->fetchChild(cellName); if (!cell) { @@ -231,7 +231,7 @@ void TeamBar::buildTeamBar() { noInviteImage->setVisibility(!couldInvite); while (true) { - String cellName = strf("%s", controlIndex); + String cellName = strf("{}", controlIndex); WidgetPtr cell = list->fetchChild(cellName); if (!cell) break; -- cgit v1.2.3