Changeset 63660 in webkit


Ignore:
Timestamp:
Jul 19, 2010 8:05:53 AM (14 years ago)
Author:
commit-queue@webkit.org
Message:

2010-07-19 Robin Burchell <robin.burchell@collabora.co.uk>

Reviewed by Antonio Gomes

[Qt] Use memcpy() instead of qMemCopy()
This is supposed to be more efficient, as the compiler is able to
optimise more.

Additionally, qMemCopy() is only strictly supposed to be used in
headers (see Qt's src/corelib/qglobal.h for reference)
See: https://bugs.webkit.org/show_bug.cgi?id=42392

  • bridge/qt/qt_runtime.cpp: (JSC::Bindings::convertQVariantToValue):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r63659 r63660  
     12010-07-19  Robin Burchell  <robin.burchell@collabora.co.uk>
     2
     3        Reviewed by Antonio Gomes
     4
     5        [Qt] Use memcpy() instead of qMemCopy()
     6        This is supposed to be more efficient, as the compiler is able to
     7        optimise more.
     8
     9        Additionally,  qMemCopy() is only strictly supposed to be used in
     10        headers (see Qt's src/corelib/qglobal.h for reference)
     11        See: https://bugs.webkit.org/show_bug.cgi?id=42392
     12
     13        * bridge/qt/qt_runtime.cpp:
     14        (JSC::Bindings::convertQVariantToValue):
     15
    1162010-07-14  Andreas Kling  <andreas.kling@nokia.com>
    217
  • trunk/WebCore/bridge/qt/qt_runtime.cpp

    r61478 r63660  
    870870        QByteArray qtByteArray = variant.value<QByteArray>();
    871871        WTF::RefPtr<WTF::ByteArray> wtfByteArray = WTF::ByteArray::create(qtByteArray.length());
    872         qMemCopy(wtfByteArray->data(), qtByteArray.constData(), qtByteArray.length());
     872        memcpy(wtfByteArray->data(), qtByteArray.constData(), qtByteArray.length());
    873873        return new (exec) JSC::JSByteArray(exec, JSC::JSByteArray::createStructure(jsNull()), wtfByteArray.get());
    874874    }
Note: See TracChangeset for help on using the changeset viewer.