diff options
author | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-02-13 11:31:45 +0100 |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@theqtcompany.com> | 2015-04-16 20:56:59 +0000 |
commit | b8dbd08705fa698b516addbe5ce07159cce0409b (patch) | |
tree | 012b5a5dcfc570e0ac5588f8a8dc3a6e8437e05a /src/qml/jsruntime/qv4string_p.h | |
parent | 43961057a973715856486c596959213bd911df73 (diff) |
Get rid of Value::asDateObject()
Change-Id: I71816a784b5175f600c5a870318b16c0d84c42fb
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/jsruntime/qv4string_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4string_p.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4string_p.h b/src/qml/jsruntime/qv4string_p.h index 5a0c83b4b9..b6712ece40 100644 --- a/src/qml/jsruntime/qv4string_p.h +++ b/src/qml/jsruntime/qv4string_p.h @@ -184,6 +184,11 @@ public: static uint toArrayIndex(const QString &str); }; +template<> +inline const String *Value::as() const { + return isManaged() && m->vtable->isString ? static_cast<const String *>(this) : 0; +} + } QT_END_NAMESPACE |