summaryrefslogtreecommitdiff
path: root/tools/src/scaninc/source_file.cpp
diff options
context:
space:
mode:
authoroctorock <79596758+octorock@users.noreply.github.com>2023-05-31 23:51:20 +0200
committeroctorock <79596758+octorock@users.noreply.github.com>2023-05-31 23:51:20 +0200
commitbbac5ace3fb87828f288ff583f72a5a51af5a05f (patch)
tree70fb8b55e62a1d270e9f3cec927519a34ca17100 /tools/src/scaninc/source_file.cpp
parent134f39a0bdad19fc794e19fba56d072d1ab30022 (diff)
parent79bbd540a8846e48f97b77ea03d28828bdcca0ae (diff)
Merge remote-tracking branch 'upstream/master' into tilemap-docs
Diffstat (limited to 'tools/src/scaninc/source_file.cpp')
-rw-r--r--tools/src/scaninc/source_file.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/src/scaninc/source_file.cpp b/tools/src/scaninc/source_file.cpp
index 0cefc9f1..107396b0 100644
--- a/tools/src/scaninc/source_file.cpp
+++ b/tools/src/scaninc/source_file.cpp
@@ -25,7 +25,7 @@ SourceFileType GetFileType(std::string& path) {
std::size_t pos = path.find_last_of('.');
if (pos == std::string::npos)
- fatal_error("no file extension in path \"%s\"\n", path.c_str());
+ fatal_error("no file extension in path \"{}\"\n", path.c_str());
std::string extension = path.substr(pos + 1);
@@ -38,7 +38,7 @@ SourceFileType GetFileType(std::string& path) {
else if (extension == "inc")
return SourceFileType::Inc;
else
- fatal_error("Unrecognized extension \"%s\"\n", extension.c_str());
+ fatal_error("Unrecognized extension \"{}\"\n", extension.c_str());
// Unreachable
return SourceFileType::Cpp;