lint and avoid copy

This commit is contained in:
Nicolas Werner 2023-02-02 01:26:42 +01:00
parent a320fc6f7a
commit 0ab566dc4b
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
3 changed files with 44 additions and 43 deletions

View file

@ -275,7 +275,8 @@ NotificationsManager::notificationClosed(uint id, uint reason)
void
NotificationsManager::closeAllNotifications()
{
for (auto id : notificationIds.keys()) {
const auto ids = notificationIds.keys();
for (const auto &id : ids) {
closeNotification(id);
notificationIds.remove(id);
}