diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2021-05-02 02:19:56 +0200 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2021-05-16 11:42:05 +0200 |
commit | 5f29ed0d5cee8364f3a55fbdd20a6d96ac3a9b88 (patch) | |
tree | 4b10ec6e32c3252261711e3e1594b7ac37d2cbc0 /src/corelib/io/qiodevice_p.h | |
parent | 4d24fcd3e1dce6c56d9fc70ee386dcc8aa552ef6 (diff) |
QDir(Iterator): code tidies
* Turn some `flags & bit` statements that rely on QFlags->int->bool
implicit conversions, into some more idiomatic `return
flags.testAnyFlag(bit)`. This is in preparation for a future patch, and
to avoid inserting casts (return statements do not contextually convert
to bool).
* Remove a magic constant, replacing it by the symbolic one.
Change-Id: I62fc2b2bf6f0ab8fad121edd19cb2ea0d9e3582a
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/io/qiodevice_p.h')
0 files changed, 0 insertions, 0 deletions