Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[QTextStream] Add operator bool() to QTextStream class
- Add operator bool() that checks whether the associated stream has no error status. This operator makes it possible to use streams and functions that return references to streams as loop conditions: `while (stream >> text)`. - Add testcase for testing the new operator. - Update existing testcases that use or can use the status of stream operations. [ChangeLog][QtCore][QTextStream] Added implicit conversion to bool, returning `status() == Ok`. Task-number: QTBUG-52189 Change-Id: I21cbe02ec194078304bcfe606a6f2f572dd09c84 Reviewed-by: Marc Mutz <[email protected]>
- Loading branch information