From: Andrew den Exter Date: Fri, 9 Mar 2012 00:50:51 +0000 (+1000) Subject: Declare QQmlError and QQmlProperty as movable types. X-Git-Tag: 071012131707~609^2~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=623b5d9d64dfb07a2e42f317b3376581dcf2432a;p=profile%2Fivi%2Fqtdeclarative.git Declare QQmlError and QQmlProperty as movable types. Allows QList among others to use a more optimal allocation strategy for these types. Change-Id: I0a27291cae6d79d9dfc3548da7b3d4e5bc84cce8 Reviewed-by: Michael Brasser Reviewed-by: Chris Adams --- diff --git a/src/qml/qml/qqmlerror.h b/src/qml/qml/qqmlerror.h index 3c14854..73581e2 100644 --- a/src/qml/qml/qqmlerror.h +++ b/src/qml/qml/qqmlerror.h @@ -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 diff --git a/src/qml/qml/qqmlproperty.h b/src/qml/qml/qqmlproperty.h index 2c4b254..bd2b1d3 100644 --- a/src/qml/qml/qqmlproperty.h +++ b/src/qml/qml/qqmlproperty.h @@ -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