diff options
author | Oleg Shparber <trollixx@gmail.com> | 2014-12-31 10:42:15 -0800 |
---|---|---|
committer | Oleg Shparber <trollixx@gmail.com> | 2015-01-02 21:29:41 +0100 |
commit | 2fadffdc4630eca35d775d973a368feae2630bd9 (patch) | |
tree | b4af3d95e75655573cd2466d6807d3ae78feb47a /src/qml/jsruntime/qv4runtime.cpp | |
parent | 29c0102adb8b800f4947e4e7962ca414fe576866 (diff) |
Use QV4::ScopedFunctionObject typedef instead of actual type
Change-Id: I6b4effaa5bef992b4ae9402eea7fe655bc7b18f0
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4runtime.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4runtime.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4runtime.cpp b/src/qml/jsruntime/qv4runtime.cpp index 9b8912fecb..079b147840 100644 --- a/src/qml/jsruntime/qv4runtime.cpp +++ b/src/qml/jsruntime/qv4runtime.cpp @@ -905,7 +905,7 @@ ReturnedValue Runtime::callGlobalLookup(ExecutionEngine *engine, uint index, Cal Q_ASSERT(callData->thisObject.isUndefined()); Lookup *l = engine->currentContext()->lookups + index; - Scoped<FunctionObject> o(scope, l->globalGetter(l, engine)); + ScopedFunctionObject o(scope, l->globalGetter(l, engine)); if (!o) return engine->throwTypeError(); @@ -966,7 +966,7 @@ ReturnedValue Runtime::callProperty(ExecutionEngine *engine, int nameIndex, Call callData->thisObject = baseObject.asReturnedValue(); } - Scoped<FunctionObject> o(scope, baseObject->get(name)); + ScopedFunctionObject o(scope, baseObject->get(name)); if (!o) { QString error = QStringLiteral("Property '%1' of object %2 is not a function").arg(name->toQString(), callData->thisObject.toQStringNoThrow()); return engine->throwTypeError(error); |