From 2162bcc5e8725f86106cae4410d751acc2a3271d Mon Sep 17 00:00:00 2001 From: Alexey Rochev Date: Sat, 15 Oct 2022 02:43:14 +0300 Subject: [PATCH] Fix build with -no-feature-xmlstreamreader Change-Id: Ia55d0d1640f08fbff3e0bb5fef0cde261acdc4bd Reviewed-by: Marc Mutz --- src/corelib/compat/removed_api.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/corelib/compat/removed_api.cpp b/src/corelib/compat/removed_api.cpp index 234a9522d4..2204be9a3c 100644 --- a/src/corelib/compat/removed_api.cpp +++ b/src/corelib/compat/removed_api.cpp @@ -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)