mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-18 15:32:22 +00:00
AK: Add JsonValue(const char*).
This should obviously become a string, but if we don't have it, constructing from a string literal ends up creating a boolean value.
This commit is contained in:
parent
1a761ea4fd
commit
4147394dcb
Notes:
sideshowbarker
2024-07-19 13:33:20 +09:00
Author: https://github.com/awesomekling
Commit: 4147394dcb
2 changed files with 6 additions and 0 deletions
|
@ -76,6 +76,11 @@ JsonValue::JsonValue(unsigned value)
|
|||
}
|
||||
}
|
||||
|
||||
JsonValue::JsonValue(const char* cstring)
|
||||
: JsonValue(String(cstring))
|
||||
{
|
||||
}
|
||||
|
||||
JsonValue::JsonValue(double value)
|
||||
: m_type(Type::Double)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue