summaryrefslogtreecommitdiff
path: root/tools/src/scaninc/source_file.cpp
diff options
context:
space:
mode:
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;