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/path.cpp | |
parent | Per-protocol include files. (diff) | |
download | vmime-f9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8.tar.gz vmime-f9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8.zip |
Boost/C++11 shared pointers.
Diffstat (limited to 'src/path.cpp')
-rw-r--r-- | src/path.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/path.cpp b/src/path.cpp index 3e6e7a84..8722c9a7 100644 --- a/src/path.cpp +++ b/src/path.cpp @@ -93,9 +93,9 @@ void path::copyFrom(const component& other) } -ref <component> path::clone() const +shared_ptr <component> path::clone() const { - return vmime::create <path>(*this); + return make_shared <path>(*this); } @@ -106,9 +106,9 @@ path& path::operator=(const path& other) } -const std::vector <ref <component> > path::getChildComponents() +const std::vector <shared_ptr <component> > path::getChildComponents() { - return std::vector <ref <component> >(); + return std::vector <shared_ptr <component> >(); } |