1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:57:44 +00:00

LibGUI: Allow constructing a string Variant from StringView

This commit is contained in:
AnotherTest 2021-03-19 17:22:45 +03:30 committed by Andreas Kling
parent c1d67d6b17
commit b072cb725f
2 changed files with 6 additions and 0 deletions

View file

@ -143,6 +143,11 @@ Variant::Variant(const FlyString& value)
{
}
Variant::Variant(const StringView& value)
: Variant(value.to_string())
{
}
Variant::Variant(const String& value)
: m_type(Type::String)
{