aboutsummaryrefslogtreecommitdiffstats
path: root/tests/parser/bodyTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/parser/bodyTest.cpp')
-rw-r--r--tests/parser/bodyTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/parser/bodyTest.cpp b/tests/parser/bodyTest.cpp
index bb4d966b..92a4575e 100644
--- a/tests/parser/bodyTest.cpp
+++ b/tests/parser/bodyTest.cpp
@@ -40,7 +40,7 @@ VMIME_TEST_SUITE_BEGIN(bodyTest)
// Quoted-Printable encoding
vmime::bodyPart p;
- p.getBody()->setContents(vmime::create <vmime::stringContentHandler>
+ p.getBody()->setContents(vmime::make_shared <vmime::stringContentHandler>
("Foo éé\r\né bar\r\nbaz"), vmime::mediaType("text", "plain"),
vmime::charset("utf-8"), vmime::encoding("quoted-printable"));
@@ -54,7 +54,7 @@ VMIME_TEST_SUITE_BEGIN(bodyTest)
void testGenerate_NonText()
{
vmime::bodyPart p;
- p.getBody()->setContents(vmime::create <vmime::stringContentHandler>
+ p.getBody()->setContents(vmime::make_shared <vmime::stringContentHandler>
("Binary\xfa\xfb\r\ndata\r\n\r\n\xfc"), vmime::mediaType("application", "octet-stream"),
vmime::charset("utf-8"), vmime::encoding("quoted-printable"));