mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:07:36 +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
|
@ -28,9 +28,9 @@
|
|||
#include <Kernel/VirtualAddress.h>
|
||||
|
||||
namespace AK {
|
||||
void Formatter<VirtualAddress>::format(TypeErasedFormatParams& params, FormatBuilder& builder, const VirtualAddress& value)
|
||||
void Formatter<VirtualAddress>::format(FormatBuilder& builder, const VirtualAddress& value)
|
||||
{
|
||||
Formatter<StringView>::format(params, builder, String::formatted("V{:p}", value.get()));
|
||||
Formatter<StringView>::format(builder, String::formatted("V{:p}", value.get()));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -77,8 +77,10 @@ inline const LogStream& operator<<(const LogStream& stream, VirtualAddress value
|
|||
}
|
||||
|
||||
namespace AK {
|
||||
|
||||
template<>
|
||||
struct Formatter<VirtualAddress> : Formatter<StringView> {
|
||||
void format(TypeErasedFormatParams&, FormatBuilder&, const VirtualAddress&);
|
||||
void format(FormatBuilder&, const VirtualAddress&);
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue