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/windowing/StarGuiReader.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/windowing/StarGuiReader.cpp') diff --git a/source/windowing/StarGuiReader.cpp b/source/windowing/StarGuiReader.cpp index 4e02529..f44706a 100644 --- a/source/windowing/StarGuiReader.cpp +++ b/source/windowing/StarGuiReader.cpp @@ -38,10 +38,10 @@ WidgetConstructResult GuiReader::titleHandler(String const&, Json const& config) String type = iconConfig.getString("type"); auto icon = m_constructors.get(type)("icon", iconConfig); if (!icon.obj) - throw WidgetParserException(strf("Title specified incompatible icon type: %s", type)); + throw WidgetParserException(strf("Title specified incompatible icon type: {}", type)); m_pane->setTitle(icon.obj, title, subtitle); } catch (JsonException const& e) { - throw WidgetParserException(strf("Malformed icon configuration data in title. %s", outputException(e, false))); + throw WidgetParserException(strf("Malformed icon configuration data in title. {}", outputException(e, false))); } } } else { @@ -74,7 +74,7 @@ WidgetConstructResult GuiReader::backgroundHandler(String const&, Json const& co footer = config.getString("fileFooter", ""); } catch (MapException const& e) { throw WidgetParserException( - strf("Malformed gui json, missing a required value in the map. %s", outputException(e, false))); + strf("Malformed gui json, missing a required value in the map. {}", outputException(e, false))); } m_pane->setBG(header, body, footer); -- cgit v1.2.3