[network/ruqola] src/core/model: Remove redundence parentheses
Laurent Montel <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit fca6b63c2aed8081922d998dc28a4e96294693b2 by Laurent Montel.
Committed on 06/08/2026 at 06:12.
Pushed by mlaurent into branch 'master'.
Remove redundence parentheses
M +1 -1 src/core/model/messagesmodel.cpp
https://invent.kde.org/network/ruqola/-/commit/fca6b63c2aed8081922d998dc28a4e96294693b2
diff --git a/src/core/model/messagesmodel.cpp b/src/core/model/messagesmodel.cpp
index ad82d17512..984674056c 100644
--- a/src/core/model/messagesmodel.cpp
+++ b/src/core/model/messagesmodel.cpp
@@ -184,7 +184,7 @@ void MessagesModel::addMessage(const Message &message)
(*mAllMessages.begin()) = message;
qCDebug(RUQOLA_MESSAGEMODELS_LOG) << "Update first message";
emitChanged(0, {OriginalMessageOrAttachmentDescription});
- } else if ((it) != mAllMessages.begin() && (*(it - 1)).messageId() == message.messageId()) {
+ } else if (it != mAllMessages.begin() && (*(it - 1)).messageId() == message.messageId()) {
qCDebug(RUQOLA_MESSAGEMODELS_LOG) << "Update message: " << message.text();
if (message.pendingMessage()) {
// If we already have a message and we must add pending message it's that server