diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2013-09-17 15:55:39 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-20 14:26:53 +0200 |
commit | 975efc4030cabb41c109d5c848bd865cd50d4ae4 (patch) | |
tree | ee6f39f21b1c6fd7183136a363f911bf30974c8b | |
parent | 1e1dde6a546b4869534928f1c5bdb43b712f75ac (diff) |
[new compiler] Fix function-local variable declarations
Make sure to call defineFunction with FunctionCode as compile mode when
compiling functions or signal handler functions, to assign an index to local
variables.
Change-Id: I8948840dba68ce6293a87c55d3386df69d5f6a5c
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
-rw-r--r-- | src/qml/compiler/qqmlcodegenerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/compiler/qqmlcodegenerator.cpp b/src/qml/compiler/qqmlcodegenerator.cpp index 9d7af90b81..04f2b9c8f2 100644 --- a/src/qml/compiler/qqmlcodegenerator.cpp +++ b/src/qml/compiler/qqmlcodegenerator.cpp @@ -1076,7 +1076,7 @@ void JSCodeGen::generateJSCodeForFunctionsAndBindings(const QString &fileName, P defineFunction(name, node, function ? function->formals : 0, - function ? function->body->elements : node, QmlBinding); + function ? function->body->elements : node, function ? FunctionCode : QmlBinding); } |