1
Fork 0
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:
Bastiaan van der Plaat 2023-10-24 21:57:19 +02:00 committed by Andrew Kaster
parent f35791343e
commit 3acbffabf9
2 changed files with 9 additions and 2 deletions

View file

@ -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;