From d61d4d0a74a8e9c68e625cc866efd0855e5d933e Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Wed, 6 Sep 2023 22:59:16 +0200 Subject: [PATCH] macdeploycheck: Use static `QFile::exists` --- ext/macdeploycheck/macdeploycheck.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/macdeploycheck/macdeploycheck.cpp b/ext/macdeploycheck/macdeploycheck.cpp index 0d62b1e6..328c512f 100644 --- a/ext/macdeploycheck/macdeploycheck.cpp +++ b/ext/macdeploycheck/macdeploycheck.cpp @@ -105,7 +105,7 @@ int main(int argc, char **argv) { else if (library.startsWith("@executable_path")) { QString real_path = library; real_path = real_path.replace("@executable_path", bundle_path + "/Contents/MacOS"); - if (!QFile(real_path).exists()) { + if (!QFile::exists(real_path)) { qLog(Error) << real_path << "does not exist for" << filepath; success = false; } @@ -113,7 +113,7 @@ int main(int argc, char **argv) { else if (library.startsWith("@rpath")) { QString real_path = library; real_path = real_path.replace("@rpath", bundle_path + "/Contents/Frameworks"); - if (!QFile(real_path).exists() && !real_path.endsWith("QtSvg")) { // FIXME: Ignore broken svg image plugin. + if (!QFile::exists(real_path) && !real_path.endsWith("QtSvg")) { // FIXME: Ignore broken svg image plugin. qLog(Error) << real_path << "does not exist for" << filepath; success = false; } @@ -122,7 +122,7 @@ int main(int argc, char **argv) { QString loader_path = QFileInfo(filepath).path(); QString real_path = library; real_path = real_path.replace("@loader_path", loader_path); - if (!QFile(real_path).exists()) { + if (!QFile::exists(real_path)) { qLog(Error) << real_path << "does not exist for" << filepath; success = false; }