mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:57:35 +00:00
AK: Make String const-correct internally
This commit is contained in:
parent
a56dfd5c77
commit
e08c55dd8d
2 changed files with 6 additions and 6 deletions
|
@ -230,7 +230,7 @@ private:
|
|||
u8 storage[MAX_SHORT_STRING_BYTE_COUNT] = { 0 };
|
||||
};
|
||||
|
||||
explicit String(NonnullRefPtr<Detail::StringData>);
|
||||
explicit String(NonnullRefPtr<Detail::StringData const>);
|
||||
|
||||
explicit constexpr String(ShortString short_string)
|
||||
: m_short_string(short_string)
|
||||
|
@ -241,7 +241,7 @@ private:
|
|||
|
||||
union {
|
||||
ShortString m_short_string;
|
||||
Detail::StringData* m_data { nullptr };
|
||||
Detail::StringData const* m_data { nullptr };
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue