summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qtypeinfo.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2012-04-05 16:42:41 +0200
committerQt by Nokia <qt-info@nokia.com>2012-07-10 03:24:24 +0200
commit7c8d2592313acd023270b273754692677d1749c3 (patch)
tree09492cc4fc6439f30d6e35b5f7f4db384ab61af2 /src/corelib/global/qtypeinfo.h
parent9fb539085eb0cb415fb1b02708eda72c5d372353 (diff)
Q_DECLARE_SHARED: mark the type movable
All implicitly shared classes are by definition movable, so this patch adds Q_DECLARE_TYPEINFO(Type, Q_MOVABLE_TYPE) to Q_DECLARE_SHARED. Change-Id: Idf8989ae1a7ed6d1ac13fccb7eaef7395a875350 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/corelib/global/qtypeinfo.h')
-rw-r--r--src/corelib/global/qtypeinfo.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/global/qtypeinfo.h b/src/corelib/global/qtypeinfo.h
index de484006c5..4255548b0d 100644
--- a/src/corelib/global/qtypeinfo.h
+++ b/src/corelib/global/qtypeinfo.h
@@ -181,6 +181,7 @@ namespace std { \
QT_BEGIN_NAMESPACE
#define Q_DECLARE_SHARED(TYPE) \
+Q_DECLARE_TYPEINFO(TYPE, Q_MOVABLE_TYPE); \
template <> inline void qSwap<TYPE>(TYPE &value1, TYPE &value2) \
{ value1.swap(value2); } \
Q_DECLARE_SHARED_STL(TYPE)