[Webkit-unassigned] [Bug 45314] New: Remove some unnecessary duplicate calls to string functions

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 7 11:44:37 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=45314

           Summary: Remove some unnecessary duplicate calls to string
                    functions
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: robert at webkit.org
            Blocks: 45240


Replace calls of the sort :

    StringImpl::create(buffer.toUtf8().constData(), buffer.toUtf8().length())

with


    QByteArray ba = buffer.toUtf8();
    return StringImpl::create(ba.constData(), ba.length());

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



More information about the webkit-unassigned mailing list