diff --git a/src/controllers/keyboard/keyboardeventfilter.cpp b/src/controllers/keyboard/keyboardeventfilter.cpp index e9ad0869855..c604a50527b 100644 --- a/src/controllers/keyboard/keyboardeventfilter.cpp +++ b/src/controllers/keyboard/keyboardeventfilter.cpp @@ -265,7 +265,7 @@ void KeyboardEventFilter::updateWidgetShortcuts() { // kLogger.debug() << "updateWidgetShortcuts"; ScopedTimer timer(QStringLiteral("KeyboardEventFilter::updateWidgetShortcuts")); QStringList shortcutHints; - for (auto* pWidget : m_widgets) { + for (auto* pWidget : std::as_const(m_widgets)) { shortcutHints.clear(); QString keyString; const QList> controlsCommands =