Extend the ReturnedValue mechanism to pointers to Managed objects
authorLars Knoll <lars.knoll@digia.com>
Fri, 13 Sep 2013 12:11:55 +0000 (14:11 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 18 Sep 2013 11:14:03 +0000 (13:14 +0200)
commit49aead7f236f8b8a6ab85adc4b5eace1c1e4dde6
tree21b01c30b568bd79176a5dfe4ec2437e2545660e
parent2a43ec129a544d80c9cc3266b5eccce0f6ba66ef
Extend the ReturnedValue mechanism to pointers to Managed objects

Add a Returned<T> that we can return instead of raw pointers
to Managed objects.

Start using the Returned<T> for a few methods.

Also clean up all our classes to use the Q_MANAGED macro instead
of manually defining their vtable.

Change-Id: I0a2962e47f3de955cd2cd8474f8f3fcc9e36d084
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
25 files changed:
src/qml/jsruntime/qv4argumentsobject_p.h
src/qml/jsruntime/qv4arrayobject_p.h
src/qml/jsruntime/qv4booleanobject.cpp
src/qml/jsruntime/qv4booleanobject_p.h
src/qml/jsruntime/qv4dateobject_p.h
src/qml/jsruntime/qv4engine.cpp
src/qml/jsruntime/qv4engine_p.h
src/qml/jsruntime/qv4errorobject_p.h
src/qml/jsruntime/qv4functionobject_p.h
src/qml/jsruntime/qv4globalobject_p.h
src/qml/jsruntime/qv4lookup.cpp
src/qml/jsruntime/qv4managed_p.h
src/qml/jsruntime/qv4numberobject.cpp
src/qml/jsruntime/qv4numberobject_p.h
src/qml/jsruntime/qv4object_p.h
src/qml/jsruntime/qv4objectproto_p.h
src/qml/jsruntime/qv4qobjectwrapper.cpp
src/qml/jsruntime/qv4regexpobject_p.h
src/qml/jsruntime/qv4runtime.cpp
src/qml/jsruntime/qv4runtime_p.h
src/qml/jsruntime/qv4scopedvalue_p.h
src/qml/jsruntime/qv4string_p.h
src/qml/jsruntime/qv4stringobject_p.h
src/qml/jsruntime/qv4value.cpp
src/qml/jsruntime/qv4value_p.h