Changeset 59606 in webkit


Ignore:
Timestamp:
May 17, 2010 6:49:55 AM (14 years ago)
Author:
kenneth@webkit.org
Message:

REGRESSION(59563): [Qt] JSValue QtClass::fallbackObject can be optimized

Reviewed by Laszlo Gombos.

Patch declared a variable index, which shadowed an earlier declared
variable.

  • bridge/qt/qt_class.cpp:

(JSC::Bindings::QtClass::fallbackObject):

Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r59605 r59606  
     12010-05-17  Kenneth Rohde Christiansen  <kenneth@webkit.org>
     2
     3        Reviewed by Laszlo Gombos.
     4
     5        REGRESSION(59563): [Qt] JSValue QtClass::fallbackObject can be optimized
     6
     7        Patch declared a variable index, which shadowed an earlier declared
     8        variable.
     9
     10        * bridge/qt/qt_class.cpp:
     11        (JSC::Bindings::QtClass::fallbackObject):
     12
    1132010-05-14  Andrei Popescu  <andreip@google.com>
    214
  • trunk/WebCore/bridge/qt/qt_class.cpp

    r59563 r59606  
    101101            continue;
    102102
    103         int index = 0;
     103        int iter = 0;
    104104        const char* signature = m.signature();
    105         while (signature[index] && signature[index] != '(')
    106             ++index;
    107 
    108         if (normal == QByteArray::fromRawData(signature, index)) {
     105        while (signature[iter] && signature[iter] != '(')
     106            ++iter;
     107
     108        if (normal == QByteArray::fromRawData(signature, iter)) {
    109109            QtRuntimeMetaMethod* val = new (exec) QtRuntimeMetaMethod(exec, identifier, static_cast<QtInstance*>(inst), index, normal, false);
    110110            qtinst->m_methods.insert(name, val);
Note: See TracChangeset for help on using the changeset viewer.