1
Fork 0
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:
Andreas Kling 2023-02-19 23:00:24 +01:00
parent a56dfd5c77
commit e08c55dd8d
2 changed files with 6 additions and 6 deletions

View file

@ -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 };
};
};