diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2015-07-08 00:42:34 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2015-07-09 05:48:36 +0000 |
commit | bd4ff0b552d5c31eaf35d67208d003b132a4ffba (patch) | |
tree | 8dd816b7388e535449757043c46f5041736e55d0 /src/xml/sax/qxml_p.h | |
parent | f80b103910cc936e16c247fefb2daa781e09d17e (diff) |
QXmlSimpleReader: mark some types as primitive
They are held in QStack, thus QVector.
Change-Id: I0673b68632b384d6428e881e24ff830d12aecfab
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/xml/sax/qxml_p.h')
-rw-r--r-- | src/xml/sax/qxml_p.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xml/sax/qxml_p.h b/src/xml/sax/qxml_p.h index 7712b5760c..013c2618a3 100644 --- a/src/xml/sax/qxml_p.h +++ b/src/xml/sax/qxml_p.h @@ -104,6 +104,7 @@ private: QString value; int index; }; + friend class QTypeInfo<XmlRef>; QStack<XmlRef> xmlRefStack; // used for standalone declaration @@ -166,6 +167,7 @@ private: ParseFunction function; int state; }; + friend class QTypeInfo<ParseState>; QStack<ParseState> *parseStack; // used in parseProlog() @@ -294,6 +296,8 @@ private: friend class QXmlSimpleReaderLocator; friend class QDomHandler; }; +Q_DECLARE_TYPEINFO(QXmlSimpleReaderPrivate::ParseState, Q_PRIMITIVE_TYPE); +Q_DECLARE_TYPEINFO(QXmlSimpleReaderPrivate::XmlRef, Q_MOVABLE_TYPE); QT_END_NAMESPACE |