From 04235535a55c34ccc5c1ccd31a98156798c53ee4 Mon Sep 17 00:00:00 2001 From: hjk Date: Tue, 17 Aug 2021 14:16:08 +0200 Subject: [PATCH] ClangTools: Simplify Internal::fullPath() Change-Id: I3b546acdd64c40899c98893c42e9827db2d99b27 Reviewed-by: Christian Kandeler --- src/plugins/clangtools/clangtoolsutils.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/plugins/clangtools/clangtoolsutils.cpp b/src/plugins/clangtools/clangtoolsutils.cpp index 0137698f91e..d011f4368d5 100644 --- a/src/plugins/clangtools/clangtoolsutils.cpp +++ b/src/plugins/clangtools/clangtoolsutils.cpp @@ -190,11 +190,8 @@ FilePath shippedClazyStandaloneExecutable() FilePath fullPath(const FilePath &executable) { - const QString hostExeSuffix = QLatin1String(QTC_HOST_EXE_SUFFIX); - const Qt::CaseSensitivity caseSensitivity = Utils::HostOsInfo::fileNameCaseSensitivity(); - FilePath candidate = executable; - const bool hasSuffix = candidate.toString().endsWith(hostExeSuffix, caseSensitivity); + const bool hasSuffix = candidate.endsWith(QTC_HOST_EXE_SUFFIX); if (candidate.isAbsolutePath()) { if (!hasSuffix)