aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4jscall_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2017-10-20 16:11:37 +0200
committerLars Knoll <lars.knoll@qt.io>2017-11-07 09:00:41 +0000
commit9b25000cb41b97c9c9f49a542c9b82cf25c032db (patch)
tree096bd179b0c3eaa20c3e6cfc36bcefce47151c76 /src/qml/jsruntime/qv4jscall_p.h
parenta59d9a7eacea3614462eb910e03351cbb9d34b75 (diff)
Get rid of the implicit cast operator to a CallData
Change-Id: I1c35fbf8f7355bc2393ae931f99e591b800f2f45 Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4jscall_p.h')
-rw-r--r--src/qml/jsruntime/qv4jscall_p.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4jscall_p.h b/src/qml/jsruntime/qv4jscall_p.h
index ed75fb7475..0bb2d840da 100644
--- a/src/qml/jsruntime/qv4jscall_p.h
+++ b/src/qml/jsruntime/qv4jscall_p.h
@@ -103,7 +103,9 @@ struct JSCallData {
return ptr;
}
- operator CallData *() const {
+ CallData *callData(const FunctionObject *f = nullptr) const {
+ if (f)
+ ptr->function = f->asReturnedValue();
return ptr;
}