aboutsummaryrefslogtreecommitdiffstats
path: root/src/charset.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2005-07-12 22:28:02 +0000
committerVincent Richard <[email protected]>2005-07-12 22:28:02 +0000
commit681297e10b666e13cc463f6fbb16236f36c3266c (patch)
tree5d2392e2283232ed3475cd9c69e22897b03e8a97 /src/charset.cpp
parentAdded contentHandler::extractRaw(). (diff)
downloadvmime-681297e10b666e13cc463f6fbb16236f36c3266c.tar.gz
vmime-681297e10b666e13cc463f6fbb16236f36c3266c.zip
Reference counting and smart pointers.
Diffstat (limited to 'src/charset.cpp')
-rw-r--r--src/charset.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/charset.cpp b/src/charset.cpp
index cc2ba9ba..2a39b03f 100644
--- a/src/charset.cpp
+++ b/src/charset.cpp
@@ -280,9 +280,9 @@ const bool charset::operator!=(const charset& value) const
}
-charset* charset::clone() const
+ref <component> charset::clone() const
{
- return new charset(m_name);
+ return vmime::create <charset>(m_name);
}
@@ -298,9 +298,9 @@ void charset::copyFrom(const component& other)
}
-const std::vector <const component*> charset::getChildComponents() const
+const std::vector <ref <const component> > charset::getChildComponents() const
{
- return std::vector <const component*>();
+ return std::vector <ref <const component> >();
}