diff options
author | hjk <hjk121@nokiamail.com> | 2014-10-24 10:28:28 +0200 |
---|---|---|
committer | hjk <hjk121@nokiamail.com> | 2014-11-03 09:31:28 +0100 |
commit | a439483d704113286370e7e93e0e6bc16199d8ab (patch) | |
tree | 783c9d122917a01025e80fb9a6b8e558f33f00a3 /src/plugins/perforce | |
parent | 1e9b561cae81cb5d90922a094135930529ae0446 (diff) | |
download | qt-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.cpp | 3 |
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."). |