X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fqtui.cpp;h=d19692cad79dcc93c44679718f1e9215a6a51814;hp=30fe5a37cbf91304e840d7d7ea6f3901e0b8589d;hb=1f32c327ade7db3a1760b49508fb34aa10e98044;hpb=6e85a37d1b7d3501f0fd7cc94fd0fcd4ba0c6cc4 diff --git a/src/qtui/qtui.cpp b/src/qtui/qtui.cpp index 30fe5a37..d19692ca 100644 --- a/src/qtui/qtui.cpp +++ b/src/qtui/qtui.cpp @@ -137,9 +137,7 @@ void QtUi::closeNotification(uint notificationId) { backend->close(notificationId); i = _notifications.erase(i); break; - } else { - ++i; - } + } else ++i; } } @@ -150,9 +148,7 @@ void QtUi::closeNotifications(BufferId bufferId) { foreach(AbstractNotificationBackend *backend, _notificationBackends) backend->close((*i).notificationId); i = _notifications.erase(i); - } else { - ++i; - } + } else ++i; } } @@ -170,7 +166,7 @@ void QtUi::notificationActivated(uint notificationId) { Client::bufferModel()->switchToBuffer(bufId); _notifications.erase(i); break; - } + } else ++i; } }