[network/ruqola] src/core/messages: const'ify pointer

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit ad2644395a3893ff630fbe2bd0ff1f3b8e93e67f by Laurent Montel.
Committed on 05/08/2026 at 17:40.
Pushed by mlaurent into branch 'master'.

const'ify pointer

M  +1    -1    src/core/messages/message.cpp

https://invent.kde.org/network/ruqola/-/commit/ad2644395a3893ff630fbe2bd0ff1f3b8e93e67f

diff --git a/src/core/messages/message.cpp b/src/core/messages/message.cpp
index f3661638a1..fe154b2d17 100644
--- a/src/core/messages/message.cpp
+++ b/src/core/messages/message.cpp
@@ -1179,7 +1179,7 @@ Message Message::deserialize(const QJsonObject &o, EmojiManager *emojiManager)
     message.mMessageStarred.setIsStarred(o["starred"_L1].toBool());
 
     if (o.contains("pinnedMessage"_L1)) {
-        MessagePinned *pinned = MessagePinned::deserialize(o["pinnedMessage"_L1].toObject());
+        const MessagePinned *const pinned = MessagePinned::deserialize(o["pinnedMessage"_L1].toObject());
         message.setMessagePinned(*pinned);
         delete pinned;
     }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.