diff options
Diffstat (limited to 'src/qml/jsruntime/qv4lookup.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4lookup.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/qml/jsruntime/qv4lookup.cpp b/src/qml/jsruntime/qv4lookup.cpp index 0266e0504b..97270a3655 100644 --- a/src/qml/jsruntime/qv4lookup.cpp +++ b/src/qml/jsruntime/qv4lookup.cpp @@ -42,8 +42,7 @@ using namespace QV4; ReturnedValue Lookup::lookup(ValueRef thisObject, Object *obj, PropertyAttributes *attrs) { ExecutionEngine *engine = obj->engine(); - Scope scope(engine); - ScopedString name(scope, engine->currentContext()->d()->compilationUnit->runtimeStrings[nameIndex]); + Identifier *name = engine->currentContext()->d()->compilationUnit->runtimeStrings[nameIndex]->identifier; int i = 0; while (i < Size && obj) { classList[i] = obj->internalClass(); @@ -76,8 +75,7 @@ ReturnedValue Lookup::lookup(Object *obj, PropertyAttributes *attrs) { Object *thisObject = obj; ExecutionEngine *engine = obj->engine(); - Scope scope(engine); - ScopedString name(scope, engine->currentContext()->d()->compilationUnit->runtimeStrings[nameIndex]); + Identifier *name = engine->currentContext()->d()->compilationUnit->runtimeStrings[nameIndex]->identifier; int i = 0; while (i < Size && obj) { classList[i] = obj->internalClass(); |