aboutsummaryrefslogtreecommitdiffstats
path: root/tests/parser/htmlTextPartTest.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2013-11-21 21:16:57 +0000
committerVincent Richard <[email protected]>2013-11-21 21:16:57 +0000
commitf9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8 (patch)
tree2bdc90e361a8f6e0a81164cf67afec9f78f9b959 /tests/parser/htmlTextPartTest.cpp
parentPer-protocol include files. (diff)
downloadvmime-f9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8.tar.gz
vmime-f9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8.zip
Boost/C++11 shared pointers.
Diffstat (limited to 'tests/parser/htmlTextPartTest.cpp')
-rw-r--r--tests/parser/htmlTextPartTest.cpp12
1 files changed, 6 insertions, 6 deletions
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 <const vmime::contentHandler> cth)
+ (vmime::shared_ptr <const vmime::contentHandler> cth)
{
std::ostringstream oss;
vmime::utility::outputStreamAdapter osa(oss);
@@ -74,7 +74,7 @@ VMIME_TEST_SUITE_BEGIN(htmlTextPartTest)
"--LEVEL1--\r\n"
"";
- vmime::ref <vmime::message> msg = vmime::create <vmime::message>();
+ vmime::shared_ptr <vmime::message> msg = vmime::make_shared <vmime::message>();
msg->parse(msgString);
// Sanity checks
@@ -129,7 +129,7 @@ VMIME_TEST_SUITE_BEGIN(htmlTextPartTest)
"--LEVEL1--\r\n"
"";
- vmime::ref <vmime::message> msg = vmime::create <vmime::message>();
+ vmime::shared_ptr <vmime::message> msg = vmime::make_shared <vmime::message>();
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 <const vmime::htmlTextPart::embeddedObject> obj;
+ vmime::shared_ptr <const vmime::htmlTextPart::embeddedObject> obj;
obj = htmlPart.findObject("image1@test");
@@ -201,7 +201,7 @@ VMIME_TEST_SUITE_BEGIN(htmlTextPartTest)
"--LEVEL1--\r\n"
"";
- vmime::ref <vmime::message> msg = vmime::create <vmime::message>();
+ vmime::shared_ptr <vmime::message> msg = vmime::make_shared <vmime::message>();
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 <const vmime::htmlTextPart::embeddedObject> obj;
+ vmime::shared_ptr <const vmime::htmlTextPart::embeddedObject> obj;
obj = htmlPart.findObject("http://www.vmime.org/test/image1.png");