summaryrefslogtreecommitdiffstats
path: root/src/core/content_browser_client_qt.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/content_browser_client_qt.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/content_browser_client_qt.cpp')
-rw-r--r--src/core/content_browser_client_qt.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/content_browser_client_qt.cpp b/src/core/content_browser_client_qt.cpp
index 11e068dca..28294dce7 100644
--- a/src/core/content_browser_client_qt.cpp
+++ b/src/core/content_browser_client_qt.cpp
@@ -235,18 +235,18 @@ public:
{
QString platform = qApp->platformName().toLower();
QPlatformNativeInterface *pni = QGuiApplication::platformNativeInterface();
- if (platform == QStringLiteral("xcb")) {
+ if (platform == QLatin1String("xcb")) {
if (gfx::GetGLImplementation() == gfx::kGLImplementationEGLGLES2)
m_handle = pni->nativeResourceForContext(QByteArrayLiteral("eglcontext"), qtContext);
else
m_handle = pni->nativeResourceForContext(QByteArrayLiteral("glxcontext"), qtContext);
- } else if (platform == QStringLiteral("cocoa"))
+ } else if (platform == QLatin1String("cocoa"))
m_handle = pni->nativeResourceForContext(QByteArrayLiteral("cglcontextobj"), qtContext);
- else if (platform == QStringLiteral("qnx"))
+ else if (platform == QLatin1String("qnx"))
m_handle = pni->nativeResourceForContext(QByteArrayLiteral("eglcontext"), qtContext);
- else if (platform == QStringLiteral("eglfs"))
+ else if (platform == QLatin1String("eglfs"))
m_handle = pni->nativeResourceForContext(QByteArrayLiteral("eglcontext"), qtContext);
- else if (platform == QStringLiteral("windows")) {
+ else if (platform == QLatin1String("windows")) {
if (gfx::GetGLImplementation() == gfx::kGLImplementationEGLGLES2)
m_handle = pni->nativeResourceForContext(QByteArrayLiteral("eglContext"), qtContext);
else