mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-03-06 05:24:17 +00:00
LibGUI: Remove GUI::Variant::Variant(JsonValue const&)
Let's force callers of Variant constructor to know the type of the object they are constructing.
This commit is contained in:
committed by
Andrew Kaster
parent
77f36a9e46
commit
0388c828be
@@ -137,7 +137,7 @@ Variant JsonArrayModel::data(ModelIndex const& index, ModelRole role) const
|
||||
if (!data.has_value())
|
||||
return "";
|
||||
if (data->is_number())
|
||||
return data.value();
|
||||
return data->serialized<StringBuilder>();
|
||||
return data->as_string();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user