mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 21:48:11 +00:00
LibGUI: Allow constructing Variant from FlyString
This commit is contained in:
parent
7f83f77377
commit
7f8dc347b5
2 changed files with 7 additions and 0 deletions
|
@ -24,6 +24,7 @@
|
|||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <AK/FlyString.h>
|
||||
#include <AK/JsonValue.h>
|
||||
#include <LibGUI/Variant.h>
|
||||
|
||||
|
@ -128,6 +129,11 @@ Variant::Variant(const char* cstring)
|
|||
{
|
||||
}
|
||||
|
||||
Variant::Variant(const FlyString& value)
|
||||
: Variant(String(value.impl()))
|
||||
{
|
||||
}
|
||||
|
||||
Variant::Variant(const String& value)
|
||||
: m_type(Type::String)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue