diff options
author | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-02-14 22:46:41 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2015-04-24 15:20:43 +0000 |
commit | 0a499043fbaccc0a83ba59f81f64993552d7b13b (patch) | |
tree | 805009e85cd5b7b2df39234dd4ad532ed3df1530 /src/qml/jsruntime/qv4string_p.h | |
parent | 3e4cf5498b6605b1953cbe1b041bdff10154a0ce (diff) |
Get rid of qv4value_inl_p.h and replace it by qv4typedvalue_p.h
This is a cleaner separation and further reduces include dependencies
in the definitions of our basic data structured.
Change-Id: I18aa86cdea0c0dfbc16075d4d617af97e638811e
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 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4string_p.h b/src/qml/jsruntime/qv4string_p.h index a225825031..b133f68b20 100644 --- a/src/qml/jsruntime/qv4string_p.h +++ b/src/qml/jsruntime/qv4string_p.h @@ -189,6 +189,15 @@ inline const String *Value::as() const { return isManaged() && m && m->vtable->isString ? static_cast<const String *>(this) : 0; } +#ifndef V4_BOOTSTRAP +template<> +inline ReturnedValue value_convert<String>(ExecutionEngine *e, const Value &v) +{ + return v.toString(e)->asReturnedValue(); +} +#endif + + } QT_END_NAMESPACE |