summaryrefslogtreecommitdiffstats
path: root/tools/repogen/repogen.cpp
diff options
context:
space:
mode:
authorKatja Marttila <katja.marttila@qt.io>2022-11-04 14:50:14 +0200
committerKatja Marttila <katja.marttila@qt.io>2022-11-04 15:33:05 +0200
commite72eb190bbefd628479f51fbb504be14eeb0bea2 (patch)
tree504ce151ba2f48d30d5f0f966e4a9cd53c7966b1 /tools/repogen/repogen.cpp
parent86400d06e157c329d4886ae3f5d5639c421eee92 (diff)
Use QFileInfo::exists() as that is documented to be faster
Change-Id: I413669860334d96de684c1c32962a33166ac6c7c Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
Diffstat (limited to 'tools/repogen/repogen.cpp')
-rw-r--r--tools/repogen/repogen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/repogen/repogen.cpp b/tools/repogen/repogen.cpp
index a8720a0de..2abe67e78 100644
--- a/tools/repogen/repogen.cpp
+++ b/tools/repogen/repogen.cpp
@@ -185,7 +185,7 @@ int main(int argc, char** argv)
"Error: Repository parameter missing argument"));
}
- if (!QFileInfo(args.first()).exists()) {
+ if (!QFileInfo::exists(args.first())) {
return printErrorAndUsageAndExit(QCoreApplication::translate("QInstaller",
"Error: Only local filesystem repositories now supported"));
}