summaryrefslogtreecommitdiff
path: root/src/plugins/perforce
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/plugins/perforce
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/plugins/perforce')
-rw-r--r--src/plugins/perforce/perforcechecker.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/perforce/perforcechecker.cpp b/src/plugins/perforce/perforcechecker.cpp
index e941397672..ccb515b123 100644
--- a/src/plugins/perforce/perforcechecker.cpp
+++ b/src/plugins/perforce/perforcechecker.cpp
@@ -181,8 +181,7 @@ void PerforceChecker::parseOutput(const QString &response)
return;
}
// Check existence. No precise check here, might be a symlink
- const QFileInfo fi(repositoryRoot);
- if (fi.exists()) {
+ if (QFileInfo::exists(repositoryRoot)) {
emitSucceeded(repositoryRoot);
} else {
emitFailed(tr("The repository \"%1\" does not exist.").