From 11a0c56fc8d0273e023eef276a8be9ddbbd7f589 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 9 Mar 2018 13:55:46 +0100 Subject: Fixed build --- framework/src/domain/mime/tests/mailtemplatetest.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/framework/src/domain/mime/tests/mailtemplatetest.cpp b/framework/src/domain/mime/tests/mailtemplatetest.cpp index d5642bb6..d07b704d 100644 --- a/framework/src/domain/mime/tests/mailtemplatetest.cpp +++ b/framework/src/domain/mime/tests/mailtemplatetest.cpp @@ -410,10 +410,10 @@ private slots: QCOMPARE(result->subject()->asUnicodeString(), subject); QVERIFY(result->date(false)->dateTime().isValid()); - QCOMPARE(result->contentType()->mimeType(), "multipart/mixed"); + QCOMPARE(result->contentType()->mimeType(), QByteArray{"multipart/mixed"}); auto resultAttachments = result->attachments(); QCOMPARE(resultAttachments.size(), 1); - QCOMPARE(resultAttachments[0]->contentDisposition()->filename(), "0x8F246DE6.asc"); + QCOMPARE(resultAttachments[0]->contentDisposition()->filename(), {"0x8F246DE6.asc"}); auto signedMessage = result->contents()[0]; @@ -450,12 +450,12 @@ private slots: QCOMPARE(result->subject()->asUnicodeString(), subject); QVERIFY(result->date(false)->dateTime().isValid()); - QCOMPARE(result->contentType()->mimeType(), "multipart/mixed"); + QCOMPARE(result->contentType()->mimeType(), QByteArray{"multipart/mixed"}); auto resultAttachments = result->attachments(); QCOMPARE(resultAttachments.size(), 3); // It seems KMime searches for the attachments using depth-first // search, so the public key is last - QCOMPARE(resultAttachments[2]->contentDisposition()->filename(), "0x8F246DE6.asc"); + QCOMPARE(resultAttachments[2]->contentDisposition()->filename(), {"0x8F246DE6.asc"}); auto signedMessage = result->contents()[0]; -- cgit v1.2.3