aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4scopedvalue_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4scopedvalue_p.h')
-rw-r--r--src/qml/jsruntime/qv4scopedvalue_p.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/qml/jsruntime/qv4scopedvalue_p.h b/src/qml/jsruntime/qv4scopedvalue_p.h
index e12b91340d..705e5301dc 100644
--- a/src/qml/jsruntime/qv4scopedvalue_p.h
+++ b/src/qml/jsruntime/qv4scopedvalue_p.h
@@ -478,11 +478,7 @@ inline ValueRef::ValueRef(const Scoped<T> &v)
{}
inline ValueRef::ValueRef(const PersistentValue &v)
- : ptr(&v.d->value)
-{}
-
-inline ValueRef::ValueRef(PersistentValuePrivate *p)
- : ptr(&p->value)
+ : ptr(v.val)
{}
inline ValueRef &ValueRef::operator=(const ScopedValue &o)