From a72384850a042ca6aab2057640458225598c18ca Mon Sep 17 00:00:00 2001 From: Andre Rummler Date: Mon, 28 Sep 2026 23:19:46 +0200 Subject: [PATCH] Replace depreciated aAdConst with STL. --- sources/shortcutmanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/shortcutmanager.cpp b/sources/shortcutmanager.cpp index 56d43b228..0ea6f2acd 100644 --- a/sources/shortcutmanager.cpp +++ b/sources/shortcutmanager.cpp @@ -181,7 +181,7 @@ bool ShortcutManager::trigger(const QString &id) const return false; } - for (const QPointer &target : qAsConst(it->targets)) + for (const QPointer &target : std::as_const(it->targets)) { if (!target) { continue; @@ -213,7 +213,7 @@ QAction *ShortcutManager::action(const QString &id, const QObject *owner) const return nullptr; } - for (const QPointer &target : qAsConst(it->targets)) + for (const QPointer &target : std::as_const(it->targets)) { auto *action = qobject_cast(target.data()); if (!action) {