Changeset 63660 in webkit
- Timestamp:
- Jul 19, 2010 8:05:53 AM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r63659 r63660 1 2010-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 1 16 2010-07-14 Andreas Kling <andreas.kling@nokia.com> 2 17 -
trunk/WebCore/bridge/qt/qt_runtime.cpp
r61478 r63660 870 870 QByteArray qtByteArray = variant.value<QByteArray>(); 871 871 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()); 873 873 return new (exec) JSC::JSByteArray(exec, JSC::JSByteArray::createStructure(jsNull()), wtfByteArray.get()); 874 874 }
Note: See TracChangeset
for help on using the changeset viewer.