1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:28:11 +00:00

StringView: Store a StringImpl* rather than a String*.

This commit is contained in:
Andreas Kling 2019-06-08 23:55:13 +02:00
parent 6a51093ab1
commit cdb44be703
3 changed files with 7 additions and 6 deletions

View file

@ -3,8 +3,8 @@
namespace AK {
StringView::StringView(const AK::String& string)
: m_string(&string)
StringView::StringView(const String& string)
: m_impl(string.impl())
, m_characters(string.characters())
, m_length(string.length())
{