summaryrefslogtreecommitdiffstats
path: root/src/core/web_engine_library_info.cpp
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@digia.com>2014-09-17 14:36:23 +0200
committerZeno Albisser <zeno.albisser@digia.com>2014-10-07 23:26:09 +0200
commit02c80d7487c43dc63f8df7b0cf8f5b4f676e00b6 (patch)
tree11c2b038705f5b67d4f91efb3b650a63395a1634 /src/core/web_engine_library_info.cpp
parent8bbfa1fe12b88a8cd1e27652ed54d1afc4d872e2 (diff)
Replace QStringLiteral with QLatin1String where appropriate
It's faster to use QLatin1String in places where we don't actually need a QString object (like for comparison, or when creating a string with QStringBuilder). Change-Id: I9b8e28040dc2b79a767e15015b85822d06141bbe Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
Diffstat (limited to 'src/core/web_engine_library_info.cpp')
-rw-r--r--src/core/web_engine_library_info.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/web_engine_library_info.cpp b/src/core/web_engine_library_info.cpp
index c36a204e9..4cdf3813e 100644
--- a/src/core/web_engine_library_info.cpp
+++ b/src/core/web_engine_library_info.cpp
@@ -78,7 +78,7 @@ QString location(QLibraryInfo::LibraryLocation path)
switch (path) {
case QLibraryInfo::TranslationsPath:
if (!webEnginePath.isEmpty())
- return webEnginePath % QDir::separator() % QStringLiteral("translations");
+ return webEnginePath % QDir::separator() % QLatin1String("translations");
break;
case QLibraryInfo::DataPath:
if (!webEnginePath.isEmpty())
@@ -96,9 +96,9 @@ QString subProcessPath()
{
static bool initialized = false;
#if defined(OS_WIN)
- static QString processBinary (QStringLiteral(QTWEBENGINEPROCESS_NAME) % QStringLiteral(".exe"));
+ static QString processBinary (QLatin1String(QTWEBENGINEPROCESS_NAME) % QLatin1String(".exe"));
#else
- static QString processBinary (QStringLiteral(QTWEBENGINEPROCESS_NAME));
+ static QString processBinary (QLatin1String(QTWEBENGINEPROCESS_NAME));
#endif
static QString processPath (location(QLibraryInfo::LibraryExecutablesPath)
% QDir::separator() % processBinary);
@@ -121,12 +121,12 @@ QString subProcessPath()
QString pluginsPath()
{
- return location(QLibraryInfo::PluginsPath) % QDir::separator() % QStringLiteral("qtwebengine");
+ return location(QLibraryInfo::PluginsPath) % QDir::separator() % QLatin1String("qtwebengine");
}
QString localesPath()
{
- return location(QLibraryInfo::TranslationsPath) % QStringLiteral("/qtwebengine_locales");
+ return location(QLibraryInfo::TranslationsPath) % QLatin1String("/qtwebengine_locales");
}
QString fallbackDir() {
@@ -155,7 +155,7 @@ base::FilePath WebEngineLibraryInfo::getPath(int key)
QString directory;
switch (key) {
case QT_RESOURCES_PAK:
- return toFilePath(location(QLibraryInfo::DataPath) % QStringLiteral("/qtwebengine_resources.pak"));
+ return toFilePath(location(QLibraryInfo::DataPath) % QLatin1String("/qtwebengine_resources.pak"));
case base::FILE_EXE:
case content::CHILD_PROCESS_EXE:
return toFilePath(subProcessPath());