Replace depreciated aAdConst with STL.

This commit is contained in:
Andre Rummler
2026-09-28 23:19:46 +02:00
parent 2b813a0d91
commit a72384850a
+2 -2
View File
@@ -181,7 +181,7 @@ bool ShortcutManager::trigger(const QString &id) const
return false;
}
for (const QPointer<QObject> &target : qAsConst(it->targets))
for (const QPointer<QObject> &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<QObject> &target : qAsConst(it->targets))
for (const QPointer<QObject> &target : std::as_const(it->targets))
{
auto *action = qobject_cast<QAction *>(target.data());
if (!action) {