Commit 1c920040 authored by andersca's avatar andersca
Browse files

Build fix.

        
        * bindings/qt/qt_class.cpp:
        (KJS::Bindings::QtClass::methodsNamed):
        * bindings/qt/qt_instance.cpp:
        (KJS::Bindings::QtInstance::invokeMethod):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23481 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 9f86543e
2007-06-12 Anders Carlsson <andersca@apple.com>
Build fix.
* bindings/qt/qt_class.cpp:
(KJS::Bindings::QtClass::methodsNamed):
* bindings/qt/qt_instance.cpp:
(KJS::Bindings::QtInstance::invokeMethod):
2007-06-12 Anders Carlsson <andersca@apple.com>
 
Reviewed by Oliver.
......
......@@ -79,7 +79,7 @@ MethodList QtClass::methodsNamed(const Identifier& identifier, Instance*) const
signature.truncate(signature.indexOf('('));
if (signature == name) {
Method* method = new QtMethod(metaObject, i, signature, m.parameterTypes().size());
methodList.addMethod(method);
methodList.append(method);
break;
}
}
......
......@@ -87,7 +87,7 @@ JSValue* QtInstance::invokeMethod(ExecState* exec, const MethodList& methodList,
// ### Should we support overloading methods?
ASSERT(methodList.length() == 1);
QtMethod* method = static_cast<QtMethod*>(methodList.methodAt(0));
QtMethod* method = static_cast<QtMethod*>(methodList[0]);
if (method->metaObject != _object->metaObject())
return jsUndefined();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment