Fix backwards-compatible Qt6 warnings

This commit is contained in:
Johannes Wüller
2024-05-06 15:27:06 +02:00
committed by Chris Hennes
parent 5b4eeb29a9
commit 33e91421b5
22 changed files with 44 additions and 43 deletions

View File

@@ -469,7 +469,7 @@ public:
~NotificationsAction() override
{
for (auto* item : qAsConst(pushedItems)) {
for (auto* item : std::as_const(pushedItems)) {
if (item) {
delete item; // NOLINT
}
@@ -683,7 +683,7 @@ protected:
QMenu menu;
QAction* del = menu.addAction(tr("Delete"), this, [&]() {
for (auto it : qAsConst(selectedItems)) {
for (auto it : std::as_const(selectedItems)) {
delete it;
}
});