Commit 51c2f68c authored by Volker Krause's avatar Volker Krause
Browse files

Force 32bit values for size serialization

This restores compatibility with Qt 5 data and fixes the mail serializer
unit test with Qt 6.
parent ad599905
Pipeline #254068 passed with stage
in 5 minutes and 55 seconds
......@@ -9,4 +9,4 @@ Dependencies:
'pim/kmime' : '@same'
Options:
require-passing-tests-on: [ 'Linux/Qt5', 'FreeBSD/Qt5' ]
require-passing-tests-on: [ 'Linux', 'FreeBSD' ]
......@@ -211,7 +211,7 @@ template<typename T>
static void serializeAddrList(QDataStream &stream, T *hdr)
{
const KMime::Types::Mailbox::List mb = hdr->mailboxes();
stream << mb.size();
stream << (qint32)mb.size();
for (const KMime::Types::Mailbox &mbox : mb) {
stream << mbox.name() << mbox.addrSpec().localPart << mbox.addrSpec().domain;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment