From 81abaeb2edd46f12df83d089a0c827e1ad57bf19 Mon Sep 17 00:00:00 2001 From: hjk Date: Mon, 5 Sep 2022 08:47:36 +0200 Subject: [PATCH] Utils: Drop a direct use of QFileInfo ... in buildablehelperlibrary.cpp Change-Id: I21ffe1a97672e4d0053982b6581c518bca62eb97 Reviewed-by: Christian Stenger --- src/libs/utils/buildablehelperlibrary.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/libs/utils/buildablehelperlibrary.cpp b/src/libs/utils/buildablehelperlibrary.cpp index 0a2459adc10..f1b9f4f34bd 100644 --- a/src/libs/utils/buildablehelperlibrary.cpp +++ b/src/libs/utils/buildablehelperlibrary.cpp @@ -7,7 +7,6 @@ #include "qtcprocess.h" #include -#include #include #include @@ -84,10 +83,10 @@ FilePath BuildableHelperLibrary::findSystemQt(const Environment &env) FilePaths BuildableHelperLibrary::findQtsInEnvironment(const Environment &env, int maxCount) { FilePaths qmakeList; - std::set canonicalEnvPaths; + std::set canonicalEnvPaths; const FilePaths paths = env.path(); for (const FilePath &path : paths) { - if (!canonicalEnvPaths.insert(path.toFileInfo().canonicalFilePath()).second) + if (!canonicalEnvPaths.insert(path.canonicalPath()).second) continue; const FilePath qmake = findQmakeInDir(path); if (qmake.isEmpty())