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:
parent
6a51093ab1
commit
cdb44be703
3 changed files with 7 additions and 6 deletions
|
@ -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())
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue