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/emailAddress.cpp | |
parent | Per-protocol include files. (diff) | |
download | vmime-f9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8.tar.gz vmime-f9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8.zip |
Boost/C++11 shared pointers.
Diffstat (limited to 'src/emailAddress.cpp')
-rw-r--r-- | src/emailAddress.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/emailAddress.cpp b/src/emailAddress.cpp index c4119aba..eb76e16d 100644 --- a/src/emailAddress.cpp +++ b/src/emailAddress.cpp @@ -469,9 +469,9 @@ emailAddress& emailAddress::operator=(const emailAddress& other) } -ref <component>emailAddress::clone() const +shared_ptr <component>emailAddress::clone() const { - return vmime::create <emailAddress>(*this); + return make_shared <emailAddress>(*this); } @@ -499,9 +499,9 @@ void emailAddress::setDomainName(const word& domainName) } -const std::vector <ref <component> > emailAddress::getChildComponents() +const std::vector <shared_ptr <component> > emailAddress::getChildComponents() { - return std::vector <ref <component> >(); + return std::vector <shared_ptr <component> >(); } @@ -528,9 +528,9 @@ const string emailAddress::toString() const const text emailAddress::toText() const { text txt; - txt.appendWord(vmime::create <vmime::word>(m_localName)); - txt.appendWord(vmime::create <vmime::word>("@", vmime::charsets::US_ASCII)); - txt.appendWord(vmime::create <vmime::word>(m_domainName)); + txt.appendWord(make_shared <vmime::word>(m_localName)); + txt.appendWord(make_shared <vmime::word>("@", vmime::charsets::US_ASCII)); + txt.appendWord(make_shared <vmime::word>(m_domainName)); return txt; } |