Skip to content

Commit

Permalink
KeyboardEventFilter: use std::as_const()
Browse files Browse the repository at this point in the history
  • Loading branch information
ronso0 committed Jan 9, 2025
1 parent 79b8559 commit f7271f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/keyboard/keyboardeventfilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::pair<ConfigKey, QString>> controlsCommands =
Expand Down

0 comments on commit f7271f2

Please sign in to comment.