diff options
Diffstat (limited to 'WebCore/platform/text/SegmentedString.cpp')
-rw-r--r-- | WebCore/platform/text/SegmentedString.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/WebCore/platform/text/SegmentedString.cpp b/WebCore/platform/text/SegmentedString.cpp index d75032f..9ff1c45 100644 --- a/WebCore/platform/text/SegmentedString.cpp +++ b/WebCore/platform/text/SegmentedString.cpp @@ -51,6 +51,7 @@ const SegmentedString& SegmentedString::operator=(const SegmentedString &other) m_currentChar = &m_pushedChar2; else m_currentChar = other.m_currentChar; + m_closed = other.m_closed; return *this; } @@ -152,8 +153,7 @@ void SegmentedString::prepend(const SegmentedString &s) void SegmentedString::advanceSubstring() { if (m_composite) { - m_currentString = m_substrings.first(); - m_substrings.removeFirst(); + m_currentString = m_substrings.takeFirst(); if (m_substrings.isEmpty()) m_composite = false; } else { |