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/update_tilesets.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/utility/update_tilesets.cpp') diff --git a/source/utility/update_tilesets.cpp b/source/utility/update_tilesets.cpp index e5b850b..3d689ba 100644 --- a/source/utility/update_tilesets.cpp +++ b/source/utility/update_tilesets.cpp @@ -179,7 +179,7 @@ void scanObjects(TilesetUpdater& updater) { for (String const& objectName : objects->allObjects()) { auto orientations = objects->getOrientations(objectName); if (orientations.size() < 1) { - Logger::warn("Object %s has no orientations and will not be exported", objectName); + Logger::warn("Object {} has no orientations and will not be exported", objectName); continue; } @@ -244,7 +244,7 @@ int main(int argc, char** argv) { TilesetUpdater updater; for (String source : root->assets()->assetSources()) { - Logger::info("Assets source: \"%s\"", source); + Logger::info("Assets source: \"{}\"", source); updater.defineAssetSource(source); } @@ -256,7 +256,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