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/utility/map_grep.cpp | |
parent | 14b9689b6d4f4ad5276c88130dc6e449bedc0709 (diff) |
The Formatting String Catastrophe
Diffstat (limited to 'source/utility/map_grep.cpp')
-rw-r--r-- | source/utility/map_grep.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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; } } |