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) <ogoffart@woboq.com>
Reviewed-by: Martin Smith <martin.smith@digia.com>
bb10
Marc Mutz 2015-06-20 17:29:18 +02:00
parent 426d9b9c3e
commit 838478ccca
1 changed files with 3 additions and 0 deletions

View File

@ -105,6 +105,7 @@ private:
int lineNo;
int columnNo;
};
friend class QTypeInfo<StackEntry>;
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