1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-30 02:57:34 +00:00

GVariant: Don't crash when extracting a null String.

This commit is contained in:
Andreas Kling 2019-04-12 14:43:44 +02:00
parent 054c982181
commit 8f4c59c276
3 changed files with 39 additions and 3 deletions

View file

@ -39,6 +39,11 @@ public:
{
}
String(const StringImpl* impl)
: m_impl(const_cast<StringImpl*>(impl))
{
}
String(RetainPtr<StringImpl>&& impl)
: m_impl(move(impl))
{