1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 23:07:34 +00:00

AK+Format: Remove TypeErasedFormatParams& from format function.

This commit is contained in:
asynts 2020-12-30 12:14:15 +01:00 committed by Andreas Kling
parent 865f5ed4f6
commit 7e62ffbc6e
27 changed files with 129 additions and 134 deletions

View file

@ -98,12 +98,12 @@ namespace AK {
template<>
struct Formatter<GUI::TextRange> : Formatter<StringView> {
void format(TypeErasedFormatParams& params, FormatBuilder& builder, const GUI::TextRange& value)
void format(FormatBuilder& builder, const GUI::TextRange& value)
{
if (value.is_valid())
Formatter<StringView>::format(params, builder, String::formatted("{}-{}", value.start(), value.end()));
Formatter<StringView>::format(builder, String::formatted("{}-{}", value.start(), value.end()));
else
Formatter<StringView>::format(params, builder, "GUI::TextRange(Invalid)");
Formatter<StringView>::format(builder, "GUI::TextRange(Invalid)");
}
};