mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:17:44 +00:00
StringView: Make construction of String from a StringView containing a String cheaper
... at the cost of an additional pointer per view.
This commit is contained in:
parent
8fecc0eaee
commit
f9ba7adae2
3 changed files with 9 additions and 3 deletions
|
@ -44,6 +44,8 @@ public:
|
|||
bool operator==(const String&) const;
|
||||
|
||||
private:
|
||||
friend class String;
|
||||
const AK::String* m_string { nullptr };
|
||||
const char* m_characters { nullptr };
|
||||
int m_length { 0 };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue