summaryrefslogtreecommitdiffstats
path: root/src/xml/dom/qdomhelpers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/xml/dom/qdomhelpers.cpp')
-rw-r--r--src/xml/dom/qdomhelpers.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/xml/dom/qdomhelpers.cpp b/src/xml/dom/qdomhelpers.cpp
index 48869907f8f..0649e0c75d8 100644
--- a/src/xml/dom/qdomhelpers.cpp
+++ b/src/xml/dom/qdomhelpers.cpp
@@ -266,8 +266,7 @@ bool QDomParser::parseProlog()
value += u" standalone='yes'"_s;
} else {
// Add the standalone attribute only if it was specified
- QXmlStreamReaderPrivate *priv = QXmlStreamReaderPrivate::get(reader);
- if (priv->hasStandalone)
+ if (reader->hasStandaloneDeclaration())
value += u" standalone='no'"_s;
}