aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/v4
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2013-07-04 15:44:40 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-07-05 09:47:07 +0200
commita746ca7f07c404fe2b622c26ba36ab2c9132603f (patch)
treedb0b4f6ad6a6bbe82ec7f3b4ef43e3d3edfe2693 /src/qml/qml/v4
parent63193605eb71bd45d9b1a98991fee262c301849f (diff)
Fix crashes in tst_qquickvisualdatamodel
Don't try to set the name string pointer of FunctionObject to itself for these two FunctionObject subclasses. Change-Id: I4e5a1963ffefd4ce96308022c251a4bdba54dc1e Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/qml/v4')
-rw-r--r--src/qml/qml/v4/qv4functionobject_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/v4/qv4functionobject_p.h b/src/qml/qml/v4/qv4functionobject_p.h
index b72b02e5b1..39e07a2b8d 100644
--- a/src/qml/qml/v4/qv4functionobject_p.h
+++ b/src/qml/qml/v4/qv4functionobject_p.h
@@ -170,7 +170,7 @@ struct IndexedBuiltinFunction: FunctionObject
uint index;
IndexedBuiltinFunction(ExecutionContext *scope, uint index, Value (*code)(SimpleCallContext *ctx, uint index))
- : FunctionObject(scope, name)
+ : FunctionObject(scope, /*name*/0)
, code(code)
, index(index)
{