mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:37:46 +00:00
LibGUI: Add double type to Variant
This commit is contained in:
parent
f35791343e
commit
3acbffabf9
2 changed files with 9 additions and 2 deletions
|
@ -43,6 +43,11 @@ Variant& Variant::operator=(JsonValue const& value)
|
|||
return *this;
|
||||
}
|
||||
|
||||
if (value.is_double()) {
|
||||
set(value.as_double());
|
||||
return *this;
|
||||
}
|
||||
|
||||
if (value.is_string()) {
|
||||
set(value.as_string());
|
||||
return *this;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue