aboutsummaryrefslogtreecommitdiffstats
path: root/src/contentDisposition.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/contentDisposition.cpp
parentAdded contentHandler::extractRaw(). (diff)
downloadvmime-681297e10b666e13cc463f6fbb16236f36c3266c.tar.gz
vmime-681297e10b666e13cc463f6fbb16236f36c3266c.zip
Reference counting and smart pointers.
Diffstat (limited to 'src/contentDisposition.cpp')
-rw-r--r--src/contentDisposition.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/contentDisposition.cpp b/src/contentDisposition.cpp
index a2c53843..0b93cdda 100644
--- a/src/contentDisposition.cpp
+++ b/src/contentDisposition.cpp
@@ -85,9 +85,9 @@ const bool contentDisposition::operator!=(const contentDisposition& value) const
}
-contentDisposition* contentDisposition::clone() const
+ref <component> contentDisposition::clone() const
{
- return new contentDisposition(*this);
+ return vmime::create <contentDisposition>(*this);
}
@@ -118,9 +118,9 @@ void contentDisposition::setName(const string& name)
}
-const std::vector <const component*> contentDisposition::getChildComponents() const
+const std::vector <ref <const component> > contentDisposition::getChildComponents() const
{
- return std::vector <const component*>();
+ return std::vector <ref <const component> >();
}