mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 19:05:08 +00:00
GVariant: Tweak stringification of Color, Boolean and Invalid variants.
This commit is contained in:
parent
6f90f41516
commit
3674bb9429
2 changed files with 3 additions and 3 deletions
|
@ -216,7 +216,7 @@ String GVariant::to_string() const
|
|||
{
|
||||
switch (m_type) {
|
||||
case Type::Bool:
|
||||
return as_bool() ? "True" : "False";
|
||||
return as_bool() ? "true" : "false";
|
||||
case Type::Int:
|
||||
return String::format("%d", as_int());
|
||||
case Type::Float:
|
||||
|
@ -236,7 +236,7 @@ String GVariant::to_string() const
|
|||
case Type::Rect:
|
||||
return as_rect().to_string();
|
||||
case Type::Invalid:
|
||||
return "[Null]";
|
||||
return "[null]";
|
||||
break;
|
||||
}
|
||||
ASSERT_NOT_REACHED();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue