diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-27 20:23:44 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-27 20:23:44 +1000 |
commit | 332983c97b7a729c4dc5f19aa9ee4a22c420f7d8 (patch) | |
tree | fd9c441b796b522bdd5c7f8fbd32f51b8eff2a28 /source/windowing/StarGuiReader.cpp | |
parent | 14b9689b6d4f4ad5276c88130dc6e449bedc0709 (diff) |
The Formatting String Catastrophe
Diffstat (limited to 'source/windowing/StarGuiReader.cpp')
-rw-r--r-- | source/windowing/StarGuiReader.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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); |