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/htmlTextPartTest.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/parser/htmlTextPartTest.cpp') diff --git a/tests/parser/htmlTextPartTest.cpp b/tests/parser/htmlTextPartTest.cpp index 0eb7bbaf..278a87c1 100644 --- a/tests/parser/htmlTextPartTest.cpp +++ b/tests/parser/htmlTextPartTest.cpp @@ -35,7 +35,7 @@ VMIME_TEST_SUITE_BEGIN(htmlTextPartTest) static const vmime::string extractContent - (vmime::ref cth) + (vmime::shared_ptr cth) { std::ostringstream oss; vmime::utility::outputStreamAdapter osa(oss); @@ -74,7 +74,7 @@ VMIME_TEST_SUITE_BEGIN(htmlTextPartTest) "--LEVEL1--\r\n" ""; - vmime::ref msg = vmime::create (); + vmime::shared_ptr msg = vmime::make_shared (); msg->parse(msgString); // Sanity checks @@ -129,7 +129,7 @@ VMIME_TEST_SUITE_BEGIN(htmlTextPartTest) "--LEVEL1--\r\n" ""; - vmime::ref msg = vmime::create (); + vmime::shared_ptr msg = vmime::make_shared (); msg->parse(msgString); // Sanity checks @@ -153,7 +153,7 @@ VMIME_TEST_SUITE_BEGIN(htmlTextPartTest) VASSERT_EQ("has-obj2-pre", true, htmlPart.hasObject("cid:image2@test")); // Check data in objects - vmime::ref obj; + vmime::shared_ptr obj; obj = htmlPart.findObject("image1@test"); @@ -201,7 +201,7 @@ VMIME_TEST_SUITE_BEGIN(htmlTextPartTest) "--LEVEL1--\r\n" ""; - vmime::ref msg = vmime::create (); + vmime::shared_ptr msg = vmime::make_shared (); msg->parse(msgString); // Sanity checks @@ -221,7 +221,7 @@ VMIME_TEST_SUITE_BEGIN(htmlTextPartTest) VASSERT_EQ("has-obj-cid", false, htmlPart.hasObject("image1@test")); // Check data - vmime::ref obj; + vmime::shared_ptr obj; obj = htmlPart.findObject("http://www.vmime.org/test/image1.png"); -- cgit v1.2.3