Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
6.5.1
Description
In 6.5.x QDomDocument added a struct ParseResult intended to hold the parse results of calling setContent. The ParseResult explicitly converts to bool. Before the struct was created setContent returned a bool directly.
The operator bool() function of ParseResult states it returns false if setContent does not detect an error and true if setContent does,
This seems inconsistent with the documentation prior to 6.5.x where setContent states it returns true if no error and false if there is an error.
The observed behavior in 6.5.x is also at odds with the documented behavior, as successful xml file loads return true.
Attachments
Issue Links
- duplicates
-
QTBUG-112895 bool ParseResult::operator bool() returns true if no error
-
- Closed
-