mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 14:55:06 +00:00
Kernel: Remove usage of adopt_own in KString
This commit is contained in:
parent
f4d7151c3c
commit
af2c3ab524
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ OwnPtr<KString> KString::try_create_uninitialized(size_t length, char*& characte
|
||||||
return {};
|
return {};
|
||||||
auto* new_string = new (slot) KString(length);
|
auto* new_string = new (slot) KString(length);
|
||||||
characters = new_string->m_characters;
|
characters = new_string->m_characters;
|
||||||
return adopt_own(*new_string);
|
return adopt_own_if_nonnull(new_string);
|
||||||
}
|
}
|
||||||
|
|
||||||
OwnPtr<KString> KString::try_clone() const
|
OwnPtr<KString> KString::try_clone() const
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue