From 8978ee9f98a7c06825269d6fa2c99a0e706d2b7c Mon Sep 17 00:00:00 2001 From: Melvin Keskin Date: Sun, 8 May 2022 12:44:57 +0200 Subject: Message: Initialize message type directly as 'chat' Previously the type had been set to Normal first and then to Chat. There's no change in behviour. The changes to the unit test qxmppomemodata are just for consistency. Signed-off-by: Linus Jahn --- src/base/QXmppMessage.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/base/QXmppMessage.cpp') diff --git a/src/base/QXmppMessage.cpp b/src/base/QXmppMessage.cpp index abae1123..cf361a95 100644 --- a/src/base/QXmppMessage.cpp +++ b/src/base/QXmppMessage.cpp @@ -151,7 +151,7 @@ public: }; QXmppMessagePrivate::QXmppMessagePrivate() - : type(QXmppMessage::Normal), + : type(QXmppMessage::Chat), state(QXmppMessage::None), stampType(DelayedDelivery), receiptRequested(false), @@ -175,7 +175,6 @@ QXmppMessagePrivate::QXmppMessagePrivate() QXmppMessage::QXmppMessage(const QString &from, const QString &to, const QString &body, const QString &thread) : QXmppStanza(from, to), d(new QXmppMessagePrivate) { - d->type = Chat; d->body = body; d->thread = thread; } -- cgit v1.2.3