mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:27:45 +00:00
AK+Format: Remove TypeErasedFormatParams& from format function.
This commit is contained in:
parent
865f5ed4f6
commit
7e62ffbc6e
27 changed files with 129 additions and 134 deletions
|
@ -434,7 +434,7 @@ bool IPC::decode(IPC::Decoder& decoder, Color& color)
|
|||
return true;
|
||||
}
|
||||
|
||||
void AK::Formatter<Gfx::Color>::format(TypeErasedFormatParams& params, FormatBuilder& builder, const Gfx::Color& value)
|
||||
void AK::Formatter<Gfx::Color>::format(FormatBuilder& builder, const Gfx::Color& value)
|
||||
{
|
||||
Formatter<StringView>::format(params, builder, value.to_string());
|
||||
Formatter<StringView>::format(builder, value.to_string());
|
||||
}
|
||||
|
|
|
@ -317,13 +317,17 @@ const LogStream& operator<<(const LogStream&, Color);
|
|||
using Gfx::Color;
|
||||
|
||||
namespace AK {
|
||||
|
||||
template<>
|
||||
struct Formatter<Gfx::Color> : public Formatter<StringView> {
|
||||
void format(TypeErasedFormatParams& params, FormatBuilder& builder, const Gfx::Color& value);
|
||||
void format(FormatBuilder& builder, const Gfx::Color& value);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
namespace IPC {
|
||||
|
||||
bool encode(Encoder&, const Gfx::Color&);
|
||||
bool decode(Decoder&, Gfx::Color&);
|
||||
|
||||
}
|
||||
|
|
|
@ -455,9 +455,9 @@ namespace AK {
|
|||
|
||||
template<typename T>
|
||||
struct Formatter<Gfx::Rect<T>> : Formatter<StringView> {
|
||||
void format(TypeErasedFormatParams& params, FormatBuilder& builder, const Gfx::Rect<T>& value)
|
||||
void format(FormatBuilder& builder, const Gfx::Rect<T>& value)
|
||||
{
|
||||
Formatter<StringView>::format(params, builder, value.to_string());
|
||||
Formatter<StringView>::format(builder, value.to_string());
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue