aboutsummaryrefslogtreecommitdiff
path: root/src/common/Utilities/StringFormat.h
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-05-02 19:46:18 +0200
committerShauren <shauren.trinity@gmail.com>2024-05-02 19:46:18 +0200
commit39fc9f800098c314c24db1c4609ff13809100dcd (patch)
tree331c660c269085847b3a65d77f2b7910028249d2 /src/common/Utilities/StringFormat.h
parent241606ada37fd9680820f5ad8d7b3981dc85cc69 (diff)
Core/Misc: Minor fixes in preparation to support fmt v10
Diffstat (limited to 'src/common/Utilities/StringFormat.h')
-rw-r--r--src/common/Utilities/StringFormat.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/Utilities/StringFormat.h b/src/common/Utilities/StringFormat.h
index fd31ddc28d5..3ec91494ef2 100644
--- a/src/common/Utilities/StringFormat.h
+++ b/src/common/Utilities/StringFormat.h
@@ -43,7 +43,7 @@ namespace Trinity
}
catch (std::exception const& formatError)
{
- return fmt::format("An error occurred formatting string \"{}\" : {}", fmt, formatError.what());
+ return fmt::format("An error occurred formatting string \"{}\" : {}", FormatStringView(fmt), formatError.what());
}
}
@@ -56,7 +56,7 @@ namespace Trinity
}
catch (std::exception const& formatError)
{
- return fmt::format_to(out, "An error occurred formatting string \"{}\" : {}", fmt, formatError.what());
+ return fmt::format_to(out, "An error occurred formatting string \"{}\" : {}", FormatStringView(fmt), formatError.what());
}
}
@@ -118,7 +118,7 @@ struct fmt::formatter<Optional<T>, Char> : formatter<T, Char>
if (value.has_value())
return formatter<T, Char>::format(*value, ctx);
- return formatter<std::string_view, Char>().format("(nullopt)", ctx);
+ return formatter<string_view, Char>().format("(nullopt)", ctx);
}
};