mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 17:28:30 +00:00
GVariant: Add a constructor that takes const char*.
This prevents the compiler from selecting the GVariant(bool) constructor
which is clearly not what I want when I do GVariant("Hello"). :^)
This commit is contained in:
@@ -47,6 +47,11 @@ GVariant::GVariant(bool value)
|
||||
m_value.as_bool = value;
|
||||
}
|
||||
|
||||
GVariant::GVariant(const char* cstring)
|
||||
: GVariant(String(cstring))
|
||||
{
|
||||
}
|
||||
|
||||
GVariant::GVariant(const String& value)
|
||||
: m_type(Type::String)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user