mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-25 05:55:13 +00:00
AK: Add formatter for LexcialPath.
This commit is contained in:
parent
7ae530fbc7
commit
cf6980848b
Notes:
sideshowbarker
2024-07-19 01:57:04 +09:00
Author: https://github.com/asynts Commit: https://github.com/SerenityOS/serenity/commit/cf6980848bc Pull-request: https://github.com/SerenityOS/serenity/pull/3731
1 changed files with 8 additions and 0 deletions
|
@ -64,6 +64,14 @@ private:
|
|||
bool m_is_absolute { false };
|
||||
};
|
||||
|
||||
template<>
|
||||
struct Formatter<LexicalPath> : Formatter<StringView> {
|
||||
void format(TypeErasedFormatParams& params, FormatBuilder& builder, const LexicalPath& value)
|
||||
{
|
||||
Formatter<StringView>::format(params, builder, value.string());
|
||||
}
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
using AK::LexicalPath;
|
||||
|
|
Loading…
Add table
Reference in a new issue