summaryrefslogtreecommitdiffstats
path: root/src/platformsupport/input/evdevkeyboard/qevdevkeyboardmanager.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-05-27 12:32:26 +0200
committerLars Knoll <lars.knoll@qt.io>2020-06-15 10:43:51 +0200
commit31828b3d6b658ef69faaee1f4d2a06a701967294 (patch)
tree4b76dda5f78405a44727cd0038e02d4c9646e205 /src/platformsupport/input/evdevkeyboard/qevdevkeyboardmanager.cpp
parentdd28aaec6ff062327df7775e976274dc1804dc3f (diff)
Port platformsupport to QStringView
Task-number: QTBUG-84319 Change-Id: I8032382904bc8481fe0a147ca38f3de9cfb1890f Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
Diffstat (limited to 'src/platformsupport/input/evdevkeyboard/qevdevkeyboardmanager.cpp')
-rw-r--r--src/platformsupport/input/evdevkeyboard/qevdevkeyboardmanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/platformsupport/input/evdevkeyboard/qevdevkeyboardmanager.cpp b/src/platformsupport/input/evdevkeyboard/qevdevkeyboardmanager.cpp
index 52d9c34b1c..7080245d3b 100644
--- a/src/platformsupport/input/evdevkeyboard/qevdevkeyboardmanager.cpp
+++ b/src/platformsupport/input/evdevkeyboard/qevdevkeyboardmanager.cpp
@@ -124,8 +124,8 @@ void QEvdevKeyboardManager::loadKeymap(const QString &file)
// Restore the default, which is either the built-in keymap or
// the one given in the plugin spec.
QString keymapFromSpec;
- const auto specs = m_spec.splitRef(QLatin1Char(':'));
- for (const QStringRef &arg : specs) {
+ const auto specs = QStringView{m_spec}.split(QLatin1Char(':'));
+ for (const auto &arg : specs) {
if (arg.startsWith(QLatin1String("keymap=")))
keymapFromSpec = arg.mid(7).toString();
}