From 39d7e330e64c2132828a040497a5b7326202b5b9 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Mon, 27 Jan 2014 14:58:52 +0100 Subject: Make the Ref classes not template based Move to a class hierarchy that mirrors the main classes. This will allow moving functionality over into the Ref classes, as the current Managed classes become mainly something that holds the data. This is required to make objects movable by the GC. Change-Id: I4ca88ab0e5d8c88c8dc56d51937990500a33e0d9 Reviewed-by: Simon Hausmann --- src/qml/jsruntime/qv4persistent_p.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/qml/jsruntime/qv4persistent_p.h') diff --git a/src/qml/jsruntime/qv4persistent_p.h b/src/qml/jsruntime/qv4persistent_p.h index 34cf9ba50d..21f37f3d96 100644 --- a/src/qml/jsruntime/qv4persistent_p.h +++ b/src/qml/jsruntime/qv4persistent_p.h @@ -84,14 +84,13 @@ public: PersistentValue(ReturnedValue val); template PersistentValue(Returned *obj); - template - PersistentValue(const ManagedRef obj); + PersistentValue(const ManagedRef obj); PersistentValue &operator=(const ValueRef other); + PersistentValue &operator=(const ScopedValue &other); PersistentValue &operator =(ReturnedValue other); template PersistentValue &operator=(Returned *obj); - template - PersistentValue &operator=(const ManagedRef obj); + PersistentValue &operator=(const ManagedRef obj); ~PersistentValue(); ReturnedValue value() const { -- cgit v1.2.3