summary refs log tree commit diff
path: root/src/notifications
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-02-02 01:26:42 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2023-02-02 01:26:42 +0100
commit0ab566dc4bc16de87c9a90c2fb0efbff4ec117b2 (patch)
tree868cbdd64a101e8cb3954410704f94eb73ceeb9c /src/notifications
parentlint (diff)
downloadnheko-0ab566dc4bc16de87c9a90c2fb0efbff4ec117b2.tar.xz
lint and avoid copy
Diffstat (limited to 'src/notifications')
-rw-r--r--src/notifications/ManagerLinux.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/notifications/ManagerLinux.cpp b/src/notifications/ManagerLinux.cpp

index c694d88f..45d5591c 100644 --- a/src/notifications/ManagerLinux.cpp +++ b/src/notifications/ManagerLinux.cpp
@@ -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); }