diff options
author | Vincent Richard <[email protected]> | 2005-07-12 22:28:02 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2005-07-12 22:28:02 +0000 |
commit | 681297e10b666e13cc463f6fbb16236f36c3266c (patch) | |
tree | 5d2392e2283232ed3475cd9c69e22897b03e8a97 /src/contentDisposition.cpp | |
parent | Added contentHandler::extractRaw(). (diff) | |
download | vmime-681297e10b666e13cc463f6fbb16236f36c3266c.tar.gz vmime-681297e10b666e13cc463f6fbb16236f36c3266c.zip |
Reference counting and smart pointers.
Diffstat (limited to 'src/contentDisposition.cpp')
-rw-r--r-- | src/contentDisposition.cpp | 8 |
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> >(); } |