mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:14:58 +00:00
AK: Let FlyStrings be assigned from Strings
This commit is contained in:
parent
abc01cc9fe
commit
a35fa553dd
2 changed files with 7 additions and 0 deletions
|
@ -53,6 +53,12 @@ FlyString::FlyString(String const& string)
|
|||
String::ref_fly_string_data({}, m_data);
|
||||
}
|
||||
|
||||
FlyString& FlyString::operator=(String const& string)
|
||||
{
|
||||
*this = FlyString { string };
|
||||
return *this;
|
||||
}
|
||||
|
||||
FlyString::FlyString(FlyString const& other)
|
||||
: m_data(other.m_data)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue