summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Kudryavtsev <a.kudryavtsev@netris.ru>2016-01-18 22:53:49 +0300
committerAnton Kudryavtsev <a.kudryavtsev@netris.ru>2016-01-19 08:04:45 +0000
commit7c9e51e7e7b358fb9c4829ee8f02918ec4cfd016 (patch)
tree0e1872120ef2b912cb1f8dd6e61e2fc8f2ca641c
parent9000c0465020c698e7ecebbe2f326c689f3ec112 (diff)
QmlPluginDump: use QFileInfo::exist(f) instead of
... QFileInfo(f).exists(). It's faster. Change-Id: Id9dd30f5532ed73c487caffcaad3860a6475e832 Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
-rw-r--r--tools/qmlplugindump/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/qmlplugindump/main.cpp b/tools/qmlplugindump/main.cpp
index aa2e8755e6..070ea041d6 100644
--- a/tools/qmlplugindump/main.cpp
+++ b/tools/qmlplugindump/main.cpp
@@ -794,9 +794,9 @@ static bool readDependenciesData(QString dependenciesFile, const QByteArray &fil
return true;
}
-static bool readDependenciesFile(QString dependenciesFile, QStringList *dependencies,
+static bool readDependenciesFile(const QString &dependenciesFile, QStringList *dependencies,
const QStringList &urisToSkip) {
- if (!QFileInfo(dependenciesFile).exists()) {
+ if (!QFileInfo::exists(dependenciesFile)) {
std::cerr << "non existing dependencies file " << dependenciesFile.toStdString()
<< std::endl;
return false;