summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/content_client_qt.cpp4
-rw-r--r--src/core/web_engine_library_info.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/core/content_client_qt.cpp b/src/core/content_client_qt.cpp
index ccc97517e..c8b23efab 100644
--- a/src/core/content_client_qt.cpp
+++ b/src/core/content_client_qt.cpp
@@ -123,7 +123,7 @@ void AddPepperFlashFromSystem(std::vector<content::PepperPluginInfo>* plugins)
<< "/usr/lib64/chromium/PepperFlash/libpepflashplayer.so"; // OpenSuSE
#endif
for (auto it = pluginPaths.constBegin(); it != pluginPaths.constEnd(); ++it) {
- if (!QFile(*it).exists())
+ if (!QFile::exists(*it))
continue;
plugins->push_back(CreatePepperFlashInfo(QtWebEngineCore::toFilePath(*it), std::string()));
}
@@ -132,7 +132,7 @@ void AddPepperFlashFromSystem(std::vector<content::PepperPluginInfo>* plugins)
void AddPepperFlashFromCommandLine(std::vector<content::PepperPluginInfo>* plugins)
{
const base::CommandLine::StringType flash_path = base::CommandLine::ForCurrentProcess()->GetSwitchValueNative(switches::kPpapiFlashPath);
- if (flash_path.empty() || !QFile(QtWebEngineCore::toQt(flash_path)).exists())
+ if (flash_path.empty() || !QFile::exists(QtWebEngineCore::toQt(flash_path)))
return;
// Read pepper flash plugin version from command-line. (e.g. 16.0.0.235)
diff --git a/src/core/web_engine_library_info.cpp b/src/core/web_engine_library_info.cpp
index 8ec18c87d..cfe5556de 100644
--- a/src/core/web_engine_library_info.cpp
+++ b/src/core/web_engine_library_info.cpp
@@ -137,7 +137,7 @@ QString subProcessPath()
}
Q_FOREACH (const QString &candidate, candidatePaths) {
- if (QFileInfo(candidate).exists()) {
+ if (QFileInfo::exists(candidate)) {
processPath = candidate;
break;
}
@@ -164,7 +164,7 @@ QString pluginsPath()
const QStringList directories = QCoreApplication::libraryPaths();
Q_FOREACH (const QString &dir, directories) {
const QString candidate = dir % "/" % QLatin1String("qtwebengine");
- if (QFileInfo(candidate).exists()) {
+ if (QFileInfo::exists(candidate)) {
pluginsPath = candidate;
break;
}