diff options
author | Vincent Richard <[email protected]> | 2013-11-21 21:16:57 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2013-11-21 21:16:57 +0000 |
commit | f9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8 (patch) | |
tree | 2bdc90e361a8f6e0a81164cf67afec9f78f9b959 /src/mailbox.cpp | |
parent | Per-protocol include files. (diff) | |
download | vmime-f9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8.tar.gz vmime-f9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8.zip |
Boost/C++11 shared pointers.
Diffstat (limited to 'src/mailbox.cpp')
-rw-r--r-- | src/mailbox.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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 <component>mailbox::clone() const +shared_ptr <component>mailbox::clone() const { - return vmime::create <mailbox>(*this); + return make_shared <mailbox>(*this); } @@ -501,9 +501,9 @@ void mailbox::setEmail(const emailAddress& email) } -const std::vector <ref <component> > mailbox::getChildComponents() +const std::vector <shared_ptr <component> > mailbox::getChildComponents() { - return std::vector <ref <component> >(); + return std::vector <shared_ptr <component> >(); } |