From 39fc9f800098c314c24db1c4609ff13809100dcd Mon Sep 17 00:00:00 2001 From: Shauren Date: Thu, 2 May 2024 19:46:18 +0200 Subject: Core/Misc: Minor fixes in preparation to support fmt v10 --- src/common/Utilities/StringFormat.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/common/Utilities/StringFormat.h') 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, Char> : formatter if (value.has_value()) return formatter::format(*value, ctx); - return formatter().format("(nullopt)", ctx); + return formatter().format("(nullopt)", ctx); } }; -- cgit v1.2.3