mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-09-30 14:54:13 +02:00
Replace depreciated aAdConst with STL.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user