diff options
author | Denis Shienkov <denis.shienkov@gmail.com> | 2021-11-13 20:54:54 +0300 |
---|---|---|
committer | Denis Shienkov <denis.shienkov@gmail.com> | 2021-11-16 17:31:18 +0000 |
commit | f471e1d5a9ef588bf4823279303668e81c97044a (patch) | |
tree | d92923a3d1d08f29384e95b11b8b1f45b3922637 /src/app/qbs | |
parent | 154e6f50ca1d3efaecd40ff232ca7dd4678dde79 (diff) | |
download | qbs-f471e1d5a9ef588bf4823279303668e81c97044a.tar.gz |
Fix Clang-Tidy & Clazy 'clazy-qfileinfo-exists' warnings
This patch fixes the "Use the static QFileInfo::exists() instead. It's
documented to be faster. [clazy-qfileinfo-exists]" warnings.
Change-Id: I64aa7179202674048306e1ed3d327d143e1a0ea9
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/app/qbs')
-rw-r--r-- | src/app/qbs/status.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/qbs/status.cpp b/src/app/qbs/status.cpp index a5e0c8228..127d26a50 100644 --- a/src/app/qbs/status.cpp +++ b/src/app/qbs/status.cpp @@ -146,7 +146,7 @@ int printStatus(const ProjectData &project) QStringList sourceFiles = group.allFilePaths(); std::sort(sourceFiles.begin(), sourceFiles.end()); for (const QString &sourceFile : qAsConst(sourceFiles)) { - if (!QFileInfo(sourceFile).exists()) + if (!QFileInfo::exists(sourceFile)) missingFiles.push_back(sourceFile); qbsInfo() << " " << sourceFile.mid(projectDirectoryPathLength + 1); untrackedFilesInProject.removeOne(sourceFile); |