From f62bf4e76d9ae9bf685e37ace3dc6d2365e2f82f Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Wed, 12 Nov 2014 20:07:27 +0100 Subject: Changed InternalClass to store Identifier* instead of String* All members are identifiers anyway, so this gets rid of a ### and also simplifies some of the call sites by removing the need for a scoped string. Change-Id: Ic6b550cdb97afa5a4b0fa7e9b13e7768ed3f6bd8 Reviewed-by: Lars Knoll --- src/qml/jsruntime/qv4script.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/qml/jsruntime/qv4script.cpp') diff --git a/src/qml/jsruntime/qv4script.cpp b/src/qml/jsruntime/qv4script.cpp index 07e6035380..8ae4b0e0d8 100644 --- a/src/qml/jsruntime/qv4script.cpp +++ b/src/qml/jsruntime/qv4script.cpp @@ -261,8 +261,8 @@ void Script::parse() if (inheritContext) { CallContext *ctx = scope->asCallContext(); if (ctx) { - for (String * const *i = ctx->variables(), * const *ei = i + ctx->variableCount(); i < ei; ++i) - inheritedLocals.append(*i ? (*i)->toQString() : QString()); + for (Identifier * const *i = ctx->variables(), * const *ei = i + ctx->variableCount(); i < ei; ++i) + inheritedLocals.append(*i ? (*i)->string : QString()); } } -- cgit v1.2.3