diff options
author | hjk <hjk@qt.io> | 2022-01-21 12:22:54 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2022-01-26 13:13:41 +0000 |
commit | 1fc83d2a568dea3233212b351d6e9ffbc05c75e9 (patch) | |
tree | db9cc36793eef961237f18ea1567baa7732be592 /src/plugins/projectexplorer/gcctoolchain.cpp | |
parent | c6fdb66b2bd5c1dd30220fb0e87d2fc2e0dc2615 (diff) | |
download | qt-creator-1fc83d2a568dea3233212b351d6e9ffbc05c75e9.tar.gz |
Utils: Wrap various file system iteration flags and filters
... into a single class.
This makes passing them around as a whole easier, and opens a path
to have "generic" filters in form of a lambda or such.
Change-Id: Ibf644b2fedcf0f1a35258030710afff8f5873f88
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/gcctoolchain.cpp')
-rw-r--r-- | src/plugins/projectexplorer/gcctoolchain.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/gcctoolchain.cpp b/src/plugins/projectexplorer/gcctoolchain.cpp index b0b9809683..5a83af5401 100644 --- a/src/plugins/projectexplorer/gcctoolchain.cpp +++ b/src/plugins/projectexplorer/gcctoolchain.cpp @@ -1126,7 +1126,8 @@ static FilePaths findCompilerCandidates(const IDevice::ConstPtr &device, return true; }; const FilePath globalDir = device->mapToGlobalPath(deviceDir); - device->iterateDirectory(globalDir, callBack, nameFilters, QDir::Files | QDir::Executable); + device->iterateDirectory(globalDir, callBack, + {nameFilters, QDir::Files | QDir::Executable}); } } else { // The normal, local host case. |