aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4scopedvalue_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-09-24 14:28:02 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-26 09:05:25 +0200
commit9062476491dd1c81f63bb7a3ae6e6a080db1db1e (patch)
tree362935aece4c4c4fd62f15ef14b61c048bcc514c /src/qml/jsruntime/qv4scopedvalue_p.h
parent0f204625dc6720d40df22ca352af995af5448525 (diff)
Make parts of qv8engine_p.h GC safe
Change-Id: Iaa15423cedc307a09b3cd7287272d93d7a604caf Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4scopedvalue_p.h')
-rw-r--r--src/qml/jsruntime/qv4scopedvalue_p.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4scopedvalue_p.h b/src/qml/jsruntime/qv4scopedvalue_p.h
index f11a982b65..a8e18dac78 100644
--- a/src/qml/jsruntime/qv4scopedvalue_p.h
+++ b/src/qml/jsruntime/qv4scopedvalue_p.h
@@ -592,6 +592,12 @@ inline SafeValue &SafeValue::operator=(const Scoped<T> &t)
return *this;
}
+inline SafeValue &SafeValue::operator=(const ValueRef v)
+{
+ val = v.asReturnedValue();
+ return *this;
+}
+
template<typename T>
inline Returned<T> *SafeValue::as()
{