From f9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Thu, 21 Nov 2013 22:16:57 +0100 Subject: Boost/C++11 shared pointers. --- src/charset.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/charset.cpp') 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 conv = charsetConverter::create(source, dest, opts); + shared_ptr 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 conv = charsetConverter::create(source, dest, opts); + shared_ptr conv = charsetConverter::create(source, dest, opts); conv->convert(in, out); } @@ -134,9 +134,9 @@ bool charset::operator!=(const charset& value) const } -ref charset::clone() const +shared_ptr charset::clone() const { - return vmime::create (m_name); + return make_shared (m_name); } @@ -152,9 +152,9 @@ void charset::copyFrom(const component& other) } -const std::vector > charset::getChildComponents() +const std::vector > charset::getChildComponents() { - return std::vector >(); + return std::vector >(); } -- cgit v1.2.3