aboutsummaryrefslogtreecommitdiffstats
path: root/src/charset.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2013-11-21 21:16:57 +0000
committerVincent Richard <[email protected]>2013-11-21 21:16:57 +0000
commitf9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8 (patch)
tree2bdc90e361a8f6e0a81164cf67afec9f78f9b959 /src/charset.cpp
parentPer-protocol include files. (diff)
downloadvmime-f9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8.tar.gz
vmime-f9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8.zip
Boost/C++11 shared pointers.
Diffstat (limited to 'src/charset.cpp')
-rw-r--r--src/charset.cpp12
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> >();
}