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/charset.cpp | |
parent | Per-protocol include files. (diff) | |
download | vmime-f9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8.tar.gz vmime-f9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8.zip |
Boost/C++11 shared pointers.
Diffstat (limited to 'src/charset.cpp')
-rw-r--r-- | src/charset.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/charset.cpp b/src/charset.cpp index f68c7c4f..03c7b6a9 100644 --- a/src/charset.cpp +++ b/src/charset.cpp @@ -90,7 +90,7 @@ void charset::convert(utility::inputStream& in, utility::outputStream& out, const charset& source, const charset& dest, const charsetConverterOptions& opts) { - ref <charsetConverter> conv = charsetConverter::create(source, dest, opts); + shared_ptr <charsetConverter> conv = charsetConverter::create(source, dest, opts); conv->convert(in, out); } @@ -104,7 +104,7 @@ void charset::convert(const string& in, string& out, const charset& source, cons return; } - ref <charsetConverter> conv = charsetConverter::create(source, dest, opts); + shared_ptr <charsetConverter> conv = charsetConverter::create(source, dest, opts); conv->convert(in, out); } @@ -134,9 +134,9 @@ bool charset::operator!=(const charset& value) const } -ref <component> charset::clone() const +shared_ptr <component> charset::clone() const { - return vmime::create <charset>(m_name); + return make_shared <charset>(m_name); } @@ -152,9 +152,9 @@ void charset::copyFrom(const component& other) } -const std::vector <ref <component> > charset::getChildComponents() +const std::vector <shared_ptr <component> > charset::getChildComponents() { - return std::vector <ref <component> >(); + return std::vector <shared_ptr <component> >(); } |