diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2023-07-10 15:30:21 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2023-07-12 15:48:48 +0000 |
commit | 258e7ed9fd04c39c14d9365fd7aaeb7ba20e64f4 (patch) | |
tree | 0f470194a2622d7a18c92c8843c4831bb7c03469 /src/xml/dom | |
parent | f88ac070295c1efacc6b5422e7835c2267fd061a (diff) |
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
Pick-to: 6.6 6.5
Change-Id: I74d6259727c7af7265224c6d79ba39265663704b
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/xml/dom')
-rw-r--r-- | src/xml/dom/qdom.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xml/dom/qdom.cpp b/src/xml/dom/qdom.cpp index d63526ad01..a445ef350f 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() */ |