aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4value_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@theqtcompany.com>2015-02-13 14:02:09 +0100
committerSimon Hausmann <simon.hausmann@theqtcompany.com>2015-04-21 14:21:39 +0000
commit331033c77416daf41532fc9ac20cd560428fe648 (patch)
tree7b858e653eafdd5463d636c0ea12d7b7c01a5f43 /src/qml/jsruntime/qv4value_p.h
parent06db4516620f730ecb65932b94216b1447d497b0 (diff)
Move some methods from qv4value_inl_p.h to qv4value_p.h
Change-Id: If8fe9907ad1cc479f7615ceabd419e74b4da0d11 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/jsruntime/qv4value_p.h')
-rw-r--r--src/qml/jsruntime/qv4value_p.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4value_p.h b/src/qml/jsruntime/qv4value_p.h
index 7f09fc73ce..ae1e8fbd32 100644
--- a/src/qml/jsruntime/qv4value_p.h
+++ b/src/qml/jsruntime/qv4value_p.h
@@ -371,6 +371,24 @@ struct Q_QML_PRIVATE_EXPORT Value
}
};
+inline bool Value::isString() const
+{
+ if (!isManaged())
+ return false;
+ return m && m->vtable->isString;
+}
+inline bool Value::isObject() const
+{
+ if (!isManaged())
+ return false;
+ return m && m->vtable->isObject;
+}
+
+inline bool Value::isPrimitive() const
+{
+ return !isObject();
+}
+
struct Q_QML_PRIVATE_EXPORT Primitive : public Value
{