From 681297e10b666e13cc463f6fbb16236f36c3266c Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Tue, 12 Jul 2005 22:28:02 +0000 Subject: Reference counting and smart 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 9580d8e4..3fb1a10e 100644 --- a/src/mailbox.cpp +++ b/src/mailbox.cpp @@ -455,9 +455,9 @@ mailbox& mailbox::operator=(const mailbox& other) } -mailbox* mailbox::clone() const +ref mailbox::clone() const { - return new mailbox(*this); + return vmime::create (*this); } @@ -504,9 +504,9 @@ void mailbox::setEmail(const string& email) } -const std::vector mailbox::getChildComponents() const +const std::vector > mailbox::getChildComponents() const { - return std::vector (); + return std::vector >(); } -- cgit v1.2.3