From f9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Thu, 21 Nov 2013 22:16:57 +0100 Subject: Boost/C++11 shared pointers. --- tests/parser/textTest.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'tests/parser/textTest.cpp') diff --git a/tests/parser/textTest.cpp b/tests/parser/textTest.cpp index f4f30b1b..274687a5 100644 --- a/tests/parser/textTest.cpp +++ b/tests/parser/textTest.cpp @@ -104,7 +104,7 @@ VMIME_TEST_SUITE_BEGIN(textTest) VASSERT_EQ("4.3", w1.getCharset(), t4.getWordAt(0)->getCharset()); vmime::word w2("Other", vmime::charset(vmime::charsets::US_ASCII)); - t4.appendWord(vmime::create (w2)); + t4.appendWord(vmime::make_shared (w2)); vmime::text t5(t4); @@ -296,8 +296,8 @@ VMIME_TEST_SUITE_BEGIN(textTest) // White-space between two encoded words vmime::text txt; - txt.appendWord(vmime::create ("\xc3\x89t\xc3\xa9", "utf-8")); - txt.appendWord(vmime::create ("Fran\xc3\xa7ois", "utf-8")); + txt.appendWord(vmime::make_shared ("\xc3\x89t\xc3\xa9", "utf-8")); + txt.appendWord(vmime::make_shared ("Fran\xc3\xa7ois", "utf-8")); const vmime::string decoded = "\xc3\x89t\xc3\xa9""Fran\xc3\xa7ois"; const vmime::string encoded = "=?utf-8?B?w4l0w6k=?= =?utf-8?Q?Fran=C3=A7ois?="; @@ -319,11 +319,11 @@ VMIME_TEST_SUITE_BEGIN(textTest) { // White-space between two encoded words (#2) vmime::text txt; - txt.appendWord(vmime::create ("Facture ", "utf-8")); - txt.appendWord(vmime::create ("\xc3\xa0", "utf-8")); - txt.appendWord(vmime::create (" envoyer ", "utf-8")); - txt.appendWord(vmime::create ("\xc3\xa0", "utf-8")); - txt.appendWord(vmime::create (" Martine", "utf-8")); + txt.appendWord(vmime::make_shared ("Facture ", "utf-8")); + txt.appendWord(vmime::make_shared ("\xc3\xa0", "utf-8")); + txt.appendWord(vmime::make_shared (" envoyer ", "utf-8")); + txt.appendWord(vmime::make_shared ("\xc3\xa0", "utf-8")); + txt.appendWord(vmime::make_shared (" Martine", "utf-8")); const vmime::string decoded = "Facture ""\xc3\xa0"" envoyer ""\xc3\xa0"" Martine"; const vmime::string encoded = "Facture =?utf-8?B?w6A=?= envoyer =?utf-8?B?w6A=?= Martine"; @@ -422,8 +422,8 @@ VMIME_TEST_SUITE_BEGIN(textTest) VASSERT_EQ("generate1", "=?us-ascii?Q?Achim_?= =?utf-8?Q?Br=C3=A4ndt?= ", mbox.generate()); vmime::text txt; - txt.appendWord(vmime::create ("Achim ", "us-ascii")); - txt.appendWord(vmime::create ("Br\xc3\xa4ndt", "utf-8")); + txt.appendWord(vmime::make_shared ("Achim ", "us-ascii")); + txt.appendWord(vmime::make_shared ("Br\xc3\xa4ndt", "utf-8")); mbox = vmime::mailbox(txt, "me@vmime.org"); VASSERT_EQ("generate2", "=?us-ascii?Q?Achim_?= =?utf-8?Q?Br=C3=A4ndt?= ", mbox.generate()); -- cgit v1.2.3