diff options
author | Lars Knoll <[email protected]> | 2015-02-13 14:02:09 +0100 |
---|---|---|
committer | Simon Hausmann <[email protected]> | 2015-04-21 14:21:39 +0000 |
commit | 331033c77416daf41532fc9ac20cd560428fe648 (patch) | |
tree | 7b858e653eafdd5463d636c0ea12d7b7c01a5f43 /src/qml/jsruntime | |
parent | 06db4516620f730ecb65932b94216b1447d497b0 (diff) |
Move some methods from qv4value_inl_p.h to qv4value_p.h
Change-Id: If8fe9907ad1cc479f7615ceabd419e74b4da0d11
Reviewed-by: Simon Hausmann <[email protected]>
Diffstat (limited to 'src/qml/jsruntime')
-rw-r--r-- | src/qml/jsruntime/qv4value_inl_p.h | 18 | ||||
-rw-r--r-- | src/qml/jsruntime/qv4value_p.h | 18 |
2 files changed, 18 insertions, 18 deletions
diff --git a/src/qml/jsruntime/qv4value_inl_p.h b/src/qml/jsruntime/qv4value_inl_p.h index d1508285f3..9297f2ceda 100644 --- a/src/qml/jsruntime/qv4value_inl_p.h +++ b/src/qml/jsruntime/qv4value_inl_p.h @@ -45,24 +45,6 @@ QT_BEGIN_NAMESPACE namespace QV4 { -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(); -} - inline void Value::mark(ExecutionEngine *e) { if (!val) 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 { |