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. --- src/mailbox.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/mailbox.cpp') diff --git a/src/mailbox.cpp b/src/mailbox.cpp index 1c199a76..a38aada0 100644 --- a/src/mailbox.cpp +++ b/src/mailbox.cpp @@ -452,9 +452,9 @@ mailbox& mailbox::operator=(const mailbox& other) } -ref mailbox::clone() const +shared_ptr mailbox::clone() const { - return vmime::create (*this); + return make_shared (*this); } @@ -501,9 +501,9 @@ void mailbox::setEmail(const emailAddress& email) } -const std::vector > mailbox::getChildComponents() +const std::vector > mailbox::getChildComponents() { - return std::vector >(); + return std::vector >(); } -- cgit v1.2.3