summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer/gcctoolchain.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2022-12-14 17:26:30 +0100
committerhjk <hjk@qt.io>2022-12-15 12:26:00 +0000
commit5787a22f699e4bc766d9d6099117c3167af23184 (patch)
tree092c20814d5442712922e5f9f58820e1f03352b8 /src/plugins/projectexplorer/gcctoolchain.cpp
parent67c2570d748efdbddf6f052023f725cd8aa3f49d (diff)
downloadqt-creator-5787a22f699e4bc766d9d6099117c3167af23184.tar.gz
ProjectExplorer: Merge IDevice::{filePath,mapToGlobalPath}
They were doing practically the same. Keep the 'filePath' name for now until something more fitting comes up. Change-Id: I96ca4da4b30b7b463583e002f2c19d6e6c5541e6 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/gcctoolchain.cpp')
-rw-r--r--src/plugins/projectexplorer/gcctoolchain.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/gcctoolchain.cpp b/src/plugins/projectexplorer/gcctoolchain.cpp
index 2914c75d7c..59821a03ae 100644
--- a/src/plugins/projectexplorer/gcctoolchain.cpp
+++ b/src/plugins/projectexplorer/gcctoolchain.cpp
@@ -1120,7 +1120,7 @@ static FilePaths findCompilerCandidates(const ToolchainDetector &detector,
compilerPaths << candidate;
return true;
};
- const FilePath globalDir = device->mapToGlobalPath(deviceDir);
+ const FilePath globalDir = device->filePath(deviceDir.path());
globalDir.iterateDirectory(callBack, {nameFilters, QDir::Files | QDir::Executable});
}
} else {