Fix build with -no-feature-xmlstreamreader

Change-Id: Ia55d0d1640f08fbff3e0bb5fef0cde261acdc4bd
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
This commit is contained in:
Alexey Rochev 2022-10-15 02:43:14 +03:00
parent 96f7404b54
commit 2162bcc5e8

View File

@ -330,6 +330,8 @@ QVariant::QVariant(const QSize &s) : QVariant(QVariant::fromValue(s)) {}
QVariant::QVariant(const QSizeF &s) : QVariant(QVariant::fromValue(s)) {}
#endif
#if QT_CONFIG(xmlstreamreader)
#include "qxmlstream.h"
QXmlStreamReader::QXmlStreamReader(const QByteArray &data)
@ -361,4 +363,6 @@ void QXmlStreamReader::addData(const char *data)
addData(QAnyStringView(data));
}
#endif // QT_CONFIG(xmlstreamreader)
#endif // QT_CORE_REMOVED_SINCE(6, 5)