summaryrefslogtreecommitdiffstats
path: root/src/gui/itemmodels/qfilesystemmodel.cpp
diff options
context:
space:
mode:
authorAhmad Samir <a.samirh78@gmail.com>2023-05-29 16:29:27 +0300
committerAhmad Samir <a.samirh78@gmail.com>2023-12-06 18:55:07 +0300
commit3cd69050ff3187dad8c3a9b50dcc9ac9d5b60f84 (patch)
treefda5d8c2f892eb0cbfe8c38eff2df91e370b4eec /src/gui/itemmodels/qfilesystemmodel.cpp
parent2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 (diff)
QFileInfoGatherer: fix narrowing conversion warnings
Found by using -Wshorten-64-to-32 clang compiler flag, or adding that flag to the flags clangd uses. Drive-by changes: - Refactor a small while loop - Use reverse iterators - Move instead of copy while constructing a QList - Replace QPair by std::pair (see QTBUG-115841), and also for its CTAD, otherwise I'd have to spill the types out: updatedFiles.emplace_back(QPair<QString,QFileInfo>{translateDriveName(driveInfo), std::move(driveInfo)}); otherwise the clangd complains: Alias template 'QPair' requires template arguments; argument deduction only allowed for class templates Task-number: QTBUG-115841 Pick-to: 6.6 6.5 Change-Id: I942459f039f6db23f7c1928fe758c6dbf339cd2b Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/gui/itemmodels/qfilesystemmodel.cpp')
0 files changed, 0 insertions, 0 deletions