1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 15:27:35 +00:00

Use new format functions in remaining DevTools. (#3755)

* AK: Add formatter for JsonValue.

* Inspector: Use new format functions.

* Profiler: Use new format functions.

* UserspaceEmulator: Use new format functions.
This commit is contained in:
Paul Scharnofske 2020-10-13 18:34:27 +02:00 committed by GitHub
parent 626bb1be9c
commit d94f674bbb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 45 additions and 37 deletions

View file

@ -261,6 +261,14 @@ private:
} m_value;
};
template<>
struct Formatter<JsonValue> : Formatter<StringView> {
void format(TypeErasedFormatParams& params, FormatBuilder& builder, const JsonValue& value)
{
Formatter<StringView>::format(params, builder, value.to_string());
}
};
}
using AK::JsonValue;