From b09ff420e49187b3a8e510f850254b7260aab6af Mon Sep 17 00:00:00 2001 From: Edward Welbourne Date: Mon, 10 Jul 2023 15:30:21 +0200 Subject: [PATCH] Doc fix: QDomDocument::ParseResult is false on error The documentation claimed the exact opposite of what the implementation did. Since callers use it the way it's implemented, fix the doc. Fixes: QTBUG-112895 Change-Id: I74d6259727c7af7265224c6d79ba39265663704b Reviewed-by: Volker Hilsheimer (cherry picked from commit 258e7ed9fd04c39c14d9365fd7aaeb7ba20e64f4) Reviewed-by: Qt Cherry-pick Bot --- src/xml/dom/qdom.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xml/dom/qdom.cpp b/src/xml/dom/qdom.cpp index d63526ad014..a445ef350f5 100644 --- a/src/xml/dom/qdom.cpp +++ b/src/xml/dom/qdom.cpp @@ -6336,8 +6336,8 @@ QT_WARNING_POP /*! \fn QDomDocument::ParseResult::operator bool() const - Returns \c true if an error is found by QDomDocument::setContent(); - otherwise returns \c false. + Returns \c false if any error is found by QDomDocument::setContent(); + otherwise returns \c true. \sa QDomDocument::setContent() */