lint and avoid copy
This commit is contained in:
parent
a320fc6f7a
commit
0ab566dc4b
3 changed files with 44 additions and 43 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue