summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/core/ozone/gl_context_qt.cpp2
-rw-r--r--src/core/web_event_factory.cpp10
-rw-r--r--src/webengine/api/qquickwebengineview.cpp2
3 files changed, 7 insertions, 7 deletions
diff --git a/src/core/ozone/gl_context_qt.cpp b/src/core/ozone/gl_context_qt.cpp
index 647498faf..9813a3256 100644
--- a/src/core/ozone/gl_context_qt.cpp
+++ b/src/core/ozone/gl_context_qt.cpp
@@ -166,7 +166,7 @@ QFunctionPointer GLContextHelper::getEglGetProcAddress()
bool GLContextHelper::isCreateContextRobustnessSupported()
{
#if QT_CONFIG(opengl)
- if (QGuiApplication::platformName() == QLatin1Literal("offscreen"))
+ if (QGuiApplication::platformName() == QLatin1String("offscreen"))
return false;
if (QOpenGLContext *context = qt_gl_global_share_context())
diff --git a/src/core/web_event_factory.cpp b/src/core/web_event_factory.cpp
index b97696030..3a9c1eb65 100644
--- a/src/core/web_event_factory.cpp
+++ b/src/core/web_event_factory.cpp
@@ -92,24 +92,24 @@ static KeyboardDriver keyboardDriverImpl()
{
QString platformName = QGuiApplication::platformName();
- if (platformName == QLatin1Literal("windows"))
+ if (platformName == QLatin1String("windows"))
return KeyboardDriver::Windows;
- if (platformName == QLatin1Literal("cocoa"))
+ if (platformName == QLatin1String("cocoa"))
return KeyboardDriver::Cocoa;
- if (platformName == QLatin1Literal("xcb") || platformName == QLatin1Literal("wayland"))
+ if (platformName == QLatin1String("xcb") || platformName == QLatin1String("wayland"))
return KeyboardDriver::Xkb;
#if QT_CONFIG(libinput)
// Based on QEglFSIntegration::createInputHandlers and QLibInputKeyboard::processKey.
- if (platformName == QLatin1Literal("eglfs") && !qEnvironmentVariableIntValue("QT_QPA_EGLFS_NO_LIBINPUT"))
+ if (platformName == QLatin1String("eglfs") && !qEnvironmentVariableIntValue("QT_QPA_EGLFS_NO_LIBINPUT"))
return KeyboardDriver::Xkb;
#endif
#if QT_CONFIG(evdev)
// Based on QEglFSIntegration::createInputHandlers.
- if (platformName == QLatin1Literal("eglfs"))
+ if (platformName == QLatin1String("eglfs"))
return KeyboardDriver::Evdev;
#endif
diff --git a/src/webengine/api/qquickwebengineview.cpp b/src/webengine/api/qquickwebengineview.cpp
index c92e8caab..8b659bb3f 100644
--- a/src/webengine/api/qquickwebengineview.cpp
+++ b/src/webengine/api/qquickwebengineview.cpp
@@ -136,7 +136,7 @@ QQuickWebEngineViewPrivate::QQuickWebEngineViewPrivate()
memset(actions, 0, sizeof(actions));
QString platform = qApp->platformName().toLower();
- if (platform == QLatin1Literal("eglfs"))
+ if (platform == QLatin1String("eglfs"))
m_ui2Enabled = true;
const QByteArray dialogSet = qgetenv("QTWEBENGINE_DIALOG_SET");