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/relay.cpp | |
parent | Per-protocol include files. (diff) | |
download | vmime-f9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8.tar.gz vmime-f9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8.zip |
Boost/C++11 shared pointers.
Diffstat (limited to 'src/relay.cpp')
-rw-r--r-- | src/relay.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/relay.cpp b/src/relay.cpp index 90957dbe..327118c5 100644 --- a/src/relay.cpp +++ b/src/relay.cpp @@ -254,9 +254,9 @@ relay& relay::operator=(const relay& other) } -ref <component> relay::clone() const +shared_ptr <component> relay::clone() const { - return vmime::create <relay>(*this); + return make_shared <relay>(*this); } @@ -344,10 +344,10 @@ std::vector <string>& relay::getWithList() } -const std::vector <ref <component> > relay::getChildComponents() +const std::vector <shared_ptr <component> > relay::getChildComponents() { // TODO: should fields inherit from 'component'? (using typeAdapter) - return std::vector <ref <component> >(); + return std::vector <shared_ptr <component> >(); } |