diff options
author | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-02-13 10:02:28 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@digia.com> | 2015-03-20 11:17:11 +0000 |
commit | 7b7297470cde5645b2ea1db4cec7ac4bec87c1a3 (patch) | |
tree | f6649d82123938b4ea79ebc9726480368af65335 /src/qml/jsruntime/qv4functionobject_p.h | |
parent | 4e3fef5528587c3a360c7e8057ad8d9328f9e4cc (diff) |
Cleanup some of the casting code
Get rid of value_cast, and move the Managed::as()
method into Value.
Change-Id: I440ac44ae77f4fda1a8a837383fe631f432f6532
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/jsruntime/qv4functionobject_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4functionobject_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4functionobject_p.h b/src/qml/jsruntime/qv4functionobject_p.h index ce00dfb340..a429e744a3 100644 --- a/src/qml/jsruntime/qv4functionobject_p.h +++ b/src/qml/jsruntime/qv4functionobject_p.h @@ -144,8 +144,8 @@ struct Q_QML_EXPORT FunctionObject: Object { }; template<> -inline FunctionObject *value_cast(const Value &v) { - return v.asFunctionObject(); +inline const FunctionObject *Value::as() const { + return asFunctionObject(); } struct FunctionCtor: FunctionObject |