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/utility/map_grep.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/utility/map_grep.cpp') diff --git a/source/utility/map_grep.cpp b/source/utility/map_grep.cpp index 03083e0..9f8bb00 100644 --- a/source/utility/map_grep.cpp +++ b/source/utility/map_grep.cpp @@ -57,12 +57,12 @@ void grepMap(SearchParameters const& search, String file) { for (auto tileLayer : map->tileLayers()) grepTileLayer(search, map, tileLayer, [&](String const& tileName, Vec2I const& pos) { - coutf("%s: %s: %s @ %s\n", file, tileLayer->name(), tileName, pos); + coutf("{}: {}: {} @ {}\n", file, tileLayer->name(), tileName, pos); }); for (auto objectGroup : map->objectGroups()) grepObjectGroup(search, objectGroup, [&](String const& tileName, Vec2I const& pos) { - coutf("%s: %s: %s @ %s\n", file, objectGroup->name(), tileName, pos); + coutf("{}: {}: {} @ {}\n", file, objectGroup->name(), tileName, pos); }); } @@ -110,7 +110,7 @@ int main(int argc, char* argv[]) { return 0; } catch (std::exception const& e) { - cerrf("exception caught: %s\n", outputException(e, true)); + cerrf("exception caught: {}\n", outputException(e, true)); return 1; } } -- cgit v1.2.3