From 838478ccca638436b6da244c04bf3aaaf31ef05c Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Sat, 20 Jun 2015 17:29:18 +0200 Subject: qdoc: mark Location::StackEntry as movable and Location as complex Location is self-referential, so explicitly mark it as Q_COMPLEX_TYPE. Location::StackEntry is held in QVector, by way of QStack. Change-Id: I4d9001b55b86f0387ae41b93da17d06fb2857ee4 Reviewed-by: Olivier Goffart (Woboq GmbH) Reviewed-by: Martin Smith --- src/tools/qdoc/location.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tools/qdoc/location.h b/src/tools/qdoc/location.h index ade7a1518a..1cb8e3aec1 100644 --- a/src/tools/qdoc/location.h +++ b/src/tools/qdoc/location.h @@ -105,6 +105,7 @@ private: int lineNo; int columnNo; }; + friend class QTypeInfo; void emitMessage(MessageType type, const QString& message, @@ -124,6 +125,8 @@ private: static QRegExp *spuriousRegExp; static bool logProgress_; }; +Q_DECLARE_TYPEINFO(Location::StackEntry, Q_MOVABLE_TYPE); +Q_DECLARE_TYPEINFO(Location, Q_COMPLEX_TYPE); // stkTop = &stkBottom QT_END_NAMESPACE -- cgit v1.2.3