summaryrefslogtreecommitdiffstats
path: root/src/xml/dom/qdom.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/xml/dom/qdom.cpp')
-rw-r--r--src/xml/dom/qdom.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/xml/dom/qdom.cpp b/src/xml/dom/qdom.cpp
index f4c49c5e8c..74ea7d1e4e 100644
--- a/src/xml/dom/qdom.cpp
+++ b/src/xml/dom/qdom.cpp
@@ -5625,10 +5625,8 @@ QDomDocument::ParseResult QDomDocumentPrivate::setContent(QXmlStreamReader *read
QDomParser domParser(this, reader, options);
- if (!domParser.parse()) {
- const auto info = domParser.errorInfo();
- return { std::get<0>(info), std::get<1>(info), std::get<2>(info) };
- }
+ if (!domParser.parse())
+ return domParser.result();
return {};
}