diff options
author | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-01-15 15:01:06 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@digia.com> | 2015-01-23 08:07:35 +0100 |
commit | 13cf87fa93b584091a51d775953074db9df1b453 (patch) | |
tree | def0d8107e1a152faff71b31902eaade14531e12 /src/qml/jsruntime/qv4value.cpp | |
parent | 002a5d4303b3b182ae4abc4a752c49787c1c2821 (diff) |
Remove all remaining usages of ValueRef
Change-Id: Icd76d3d03fac2e57530e55f8ec15b97109dcdcbc
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4value.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4value.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qml/jsruntime/qv4value.cpp b/src/qml/jsruntime/qv4value.cpp index 0f81c94f24..b3ca1fb268 100644 --- a/src/qml/jsruntime/qv4value.cpp +++ b/src/qml/jsruntime/qv4value.cpp @@ -128,7 +128,7 @@ QString Value::toQStringNoThrow() const Scope scope(objectValue()->engine()); ScopedValue ex(scope); bool caughtException = false; - ScopedValue prim(scope, RuntimeHelpers::toPrimitive(ValueRef::fromRawValue(this), STRING_HINT)); + ScopedValue prim(scope, RuntimeHelpers::toPrimitive(*this, STRING_HINT)); if (scope.hasException()) { ex = scope.engine->catchException(); caughtException = true; @@ -179,7 +179,7 @@ QString Value::toQString() const { Q_ASSERT(isObject()); Scope scope(objectValue()->engine()); - ScopedValue prim(scope, RuntimeHelpers::toPrimitive(ValueRef::fromRawValue(this), STRING_HINT)); + ScopedValue prim(scope, RuntimeHelpers::toPrimitive(*this, STRING_HINT)); return prim->toQString(); } case Value::Integer_Type: { @@ -271,14 +271,14 @@ Heap::String *Value::toString(ExecutionEngine *e) const { if (isString()) return stringValue()->d(); - return RuntimeHelpers::convertToString(e, ValueRef::fromRawValue(this)); + return RuntimeHelpers::convertToString(e, *this); } Heap::Object *Value::toObject(ExecutionEngine *e) const { if (isObject()) return objectValue()->d(); - return RuntimeHelpers::convertToObject(e, ValueRef::fromRawValue(this)); + return RuntimeHelpers::convertToObject(e, *this); } #endif // V4_BOOTSTRAP |