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/net/imap/IMAPTagTest.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'tests/net/imap/IMAPTagTest.cpp') diff --git a/tests/net/imap/IMAPTagTest.cpp b/tests/net/imap/IMAPTagTest.cpp index 26ed87c5..db04537a 100644 --- a/tests/net/imap/IMAPTagTest.cpp +++ b/tests/net/imap/IMAPTagTest.cpp @@ -38,16 +38,16 @@ VMIME_TEST_SUITE_BEGIN(imapTagTest) void testConstruct() { - vmime::ref tag = - vmime::create (); + vmime::shared_ptr tag = + vmime::make_shared (); VASSERT_EQ("init", "a001", static_cast (*tag)); } void testIncrement() { - vmime::ref tag = - vmime::create (); + vmime::shared_ptr tag = + vmime::make_shared (); (*tag)++; VASSERT_EQ("init", "a002", static_cast (*tag)); @@ -61,8 +61,8 @@ VMIME_TEST_SUITE_BEGIN(imapTagTest) void testReset() { - vmime::ref tag = - vmime::create (); + vmime::shared_ptr tag = + vmime::make_shared (); for (int i = tag->number() ; i < tag->maximumNumber() ; ++i) (*tag)++; @@ -76,8 +76,8 @@ VMIME_TEST_SUITE_BEGIN(imapTagTest) void testNumber() { - vmime::ref tag = - vmime::create (); + vmime::shared_ptr tag = + vmime::make_shared (); for (int i = 0 ; i < 41 ; ++i) (*tag)++; -- cgit v1.2.3