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>bb10
parent
f80b103910
commit
bd4ff0b552
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue