[Webkit-unassigned] [Bug 10818] String::append does 2 full copies instead of 1 (or zero!)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Dec 21 03:52:49 PST 2006


http://bugs.webkit.org/show_bug.cgi?id=10818





------- Comment #1 from macdome at opendarwin.org  2006-12-21 03:52 PDT -------
Wow.  This is still the case:

void String::append(const String &str)
{
    if (str.m_impl) {
        if (!m_impl) {
            // ### FIXME!!!
            m_impl = str.m_impl;
            return;
        }
        m_impl = m_impl->copy();
        m_impl->append(str.m_impl.get());
    }
}


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list