summaryrefslogtreecommitdiff
path: root/src/shared/proparser/profileevaluator.cpp
diff options
context:
space:
mode:
authorhjk <hjk121@nokiamail.com>2014-10-24 10:28:28 +0200
committerhjk <hjk121@nokiamail.com>2014-11-03 09:31:28 +0100
commita439483d704113286370e7e93e0e6bc16199d8ab (patch)
tree783c9d122917a01025e80fb9a6b8e558f33f00a3 /src/shared/proparser/profileevaluator.cpp
parent1e9b561cae81cb5d90922a094135930529ae0446 (diff)
downloadqt-creator-a439483d704113286370e7e93e0e6bc16199d8ab.tar.gz
Use QFileInfo::exist(f) instead of QFileInfo(f).exists() if possible
Faster. Change-Id: I91aa67462e11ff3258600d7f158de79942d0dc81 Reviewed-by: Marc Reilly <marc.reilly@gmail.com> Reviewed-by: Christian Stenger <christian.stenger@digia.com>
Diffstat (limited to 'src/shared/proparser/profileevaluator.cpp')
-rw-r--r--src/shared/proparser/profileevaluator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/proparser/profileevaluator.cpp b/src/shared/proparser/profileevaluator.cpp
index dfd7d5dcb7..8252e4ba2c 100644
--- a/src/shared/proparser/profileevaluator.cpp
+++ b/src/shared/proparser/profileevaluator.cpp
@@ -102,7 +102,7 @@ QString ProFileEvaluator::sysrootify(const QString &path, const QString &baseDir
const bool isHostSystemPath =
option->sysroot.isEmpty() || path.startsWith(option->sysroot, cs)
|| path.startsWith(baseDir, cs) || path.startsWith(d->m_outputDir, cs)
- || !QFileInfo(option->sysroot + path).exists();
+ || !QFileInfo::exists(option->sysroot + path);
return isHostSystemPath ? path : option->sysroot + path;
}