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
committerOvahlord <dreadkiller@gmx.de>2024-05-28 16:49:12 +0200
commit2ceae541cc1e998e2404495a99061c652bc05de4 (patch)
tree74986fa91480ba0f2568bb15f076bdfd8879e07d /src/common/Utilities/StringFormat.h
parent3cf1aaaf56f0f7e556dfaa7b3516c1a52abacb8f (diff)
Core/Misc: Minor fixes in preparation to support fmt v10
(cherry picked from commit 39fc9f800098c314c24db1c4609ff13809100dcd)
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);
}
};