Declare QQmlError and QQmlProperty as movable types.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Fri, 9 Mar 2012 00:50:51 +0000 (10:50 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 13 Mar 2012 10:40:00 +0000 (11:40 +0100)
Allows QList among others to use a more optimal allocation strategy for
these types.

Change-Id: I0a27291cae6d79d9dfc3548da7b3d4e5bc84cce8
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
src/qml/qml/qqmlerror.h
src/qml/qml/qqmlproperty.h

index 3c14854..73581e2 100644 (file)
@@ -80,6 +80,8 @@ private:
 
 QDebug Q_QML_EXPORT operator<<(QDebug debug, const QQmlError &error);
 
+Q_DECLARE_TYPEINFO(QQmlError, Q_MOVABLE_TYPE);
+
 QT_END_NAMESPACE
 
 QT_END_HEADER
index 2c4b254..bd2b1d3 100644 (file)
@@ -136,6 +136,8 @@ inline uint qHash (const QQmlProperty &key)
     return qHash(key.object()) + qHash(key.name());
 }
 
+Q_DECLARE_TYPEINFO(QQmlProperty, Q_MOVABLE_TYPE);
+
 QT_END_NAMESPACE
 
 QT_END_HEADER