mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:27:45 +00:00
LibGUI: Allow constructing a string Variant from StringView
This commit is contained in:
parent
c1d67d6b17
commit
b072cb725f
2 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue