mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-10 19:46:03 +00:00
AK+Everywhere: Store JSON strings as String
This commit is contained in:
parent
e591636419
commit
bc54c0cdfb
Notes:
github-actions[bot]
2025-02-21 00:29:21 +00:00
Author: https://github.com/trflynn89
Commit: bc54c0cdfb
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3631
Reviewed-by: https://github.com/awesomekling ✅
33 changed files with 163 additions and 152 deletions
|
@ -153,17 +153,17 @@ JsonValue::JsonValue(long long unsigned value)
|
|||
}
|
||||
|
||||
JsonValue::JsonValue(double value)
|
||||
: m_value(double { value })
|
||||
{
|
||||
}
|
||||
|
||||
JsonValue::JsonValue(ByteString const& value)
|
||||
: m_value(value)
|
||||
{
|
||||
}
|
||||
|
||||
JsonValue::JsonValue(String value)
|
||||
: m_value(move(value))
|
||||
{
|
||||
}
|
||||
|
||||
JsonValue::JsonValue(StringView value)
|
||||
: m_value(ByteString { value })
|
||||
: m_value(MUST(String::from_utf8(value)))
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue