aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlvaluetypewrapper_p.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@theqtcompany.com>2014-11-18 17:28:40 +0100
committerSimon Hausmann <simon.hausmann@digia.com>2014-12-23 08:36:16 +0100
commita77526aac1c50ab0e948d3885b462ce0d1796ea1 (patch)
tree5e6a4824f133d9bd3c9274083eb329c993c41640 /src/qml/qml/qqmlvaluetypewrapper_p.h
parent8906d90d8f9d4b6bc39bc6bda25e8d300c2f83c0 (diff)
Begin cleaning up QQmlValueTypeWrapper
Get rid of the objectType member. Instead of checking for it and then static_cast'ing to the specific class, it's easier to use Managed's as<> template cast. Also elimiate the QVariant value member for ValueTypeWrapperCopy. In fact, the entire class is folded into ValueTypeWrapper itself as d()->type has the one copy of the data. Change-Id: I0d9c794400095830540d313187623b98b686f4cd Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlvaluetypewrapper_p.h')
-rw-r--r--src/qml/qml/qqmlvaluetypewrapper_p.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/qml/qml/qqmlvaluetypewrapper_p.h b/src/qml/qml/qqmlvaluetypewrapper_p.h
index e1c71c24d3..46f9f29304 100644
--- a/src/qml/qml/qqmlvaluetypewrapper_p.h
+++ b/src/qml/qml/qqmlvaluetypewrapper_p.h
@@ -61,10 +61,8 @@ namespace QV4 {
namespace Heap {
struct QQmlValueTypeWrapper : Object {
- enum ObjectType { Reference, Copy };
- QQmlValueTypeWrapper(QV8Engine *engine, ObjectType type);
+ QQmlValueTypeWrapper(QV8Engine *engine);
QV8Engine *v8;
- ObjectType objectType;
mutable QScopedPointer<QQmlValueType> type;
};