diff options
| author | Thiago Macieira <thiago.macieira@intel.com> | 2025-07-11 10:22:59 -0700 |
|---|---|---|
| committer | Thiago Macieira <thiago.macieira@intel.com> | 2025-08-05 13:52:35 -0700 |
| commit | 0276329e9fd0e7b6200a53ce9ee28ed3a5ebd58b (patch) | |
| tree | 319ba21eb89865c04ac40937ed62c8331c637814 /src/widgets/doc/snippets/qtreewidgetitemiterator-using/mainwindow.cpp | |
| parent | af22a576c1406b567f6989ef3a498b2afa76d9be (diff) | |
QFileSystemEngine/Darwin: remove superfluous check for kCFURLIsHiddenKey
As far as I can tell, CoreFramework is just testing for the UF_HIDDEN
flag being set in the st_flags result from lstat(). Since we already
perform this check ourselves, data.isHidden() will be true for every
entry for which the CF check would return true (with the previous
commit's fix applying it to lstat() instead of stat()).
This commit therefore saves us from performing an extra lstat() call and
allocating memory for the CFString and CFURL for when the entry isn't
hidden, for which CF would return false anyway.
Pick-to: 6.10 6.9 6.8
Task-number: QTBUG-138374
Change-Id: I36182829ddd79374cf3cfffda6cdd44ac85f9080
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/widgets/doc/snippets/qtreewidgetitemiterator-using/mainwindow.cpp')
0 files changed, 0 insertions, 0 deletions
