aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4functionobject_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2016-12-02 12:35:52 +0100
committerLars Knoll <lars.knoll@qt.io>2016-12-09 08:31:06 +0000
commitc6baaaa8e65ac82a3d644459cf42f76d03a0442d (patch)
treee4af452520637bb9ada0dbea7b19920b9b3d5b7c /src/qml/jsruntime/qv4functionobject_p.h
parentdeec039008c4df5ec2686459ee8c00801ee9d852 (diff)
Get rid od ScriptFunction::init()
It was just forwarding to the parent implementation anyway. Change-Id: I179966699978a86efdd6792b31b56eded501efbd Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4functionobject_p.h')
-rw-r--r--src/qml/jsruntime/qv4functionobject_p.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4functionobject_p.h b/src/qml/jsruntime/qv4functionobject_p.h
index 5c176b88b4..118caffadb 100644
--- a/src/qml/jsruntime/qv4functionobject_p.h
+++ b/src/qml/jsruntime/qv4functionobject_p.h
@@ -110,11 +110,10 @@ struct SimpleScriptFunction : FunctionObject {
Index_Name = FunctionObject::Index_Prototype + 1,
Index_Length
};
- void init(QV4::ExecutionContext *scope, Function *function, bool createProto);
+ void init(QV4::ExecutionContext *scope, Function *function, bool createProto = true);
};
struct ScriptFunction : SimpleScriptFunction {
- void init(QV4::ExecutionContext *scope, Function *function);
};
struct BoundFunction : FunctionObject {