aboutsummaryrefslogtreecommitdiffstats
path: root/src/path.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/path.cpp
parentAdded contentHandler::extractRaw(). (diff)
downloadvmime-681297e10b666e13cc463f6fbb16236f36c3266c.tar.gz
vmime-681297e10b666e13cc463f6fbb16236f36c3266c.zip
Reference counting and smart pointers.
Diffstat (limited to 'src/path.cpp')
-rw-r--r--src/path.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/path.cpp b/src/path.cpp
index 153facd3..5cb6371c 100644
--- a/src/path.cpp
+++ b/src/path.cpp
@@ -89,9 +89,9 @@ void path::copyFrom(const component& other)
}
-path* path::clone() const
+ref <component> path::clone() const
{
- return new path(*this);
+ return vmime::create <path>(*this);
}
@@ -102,9 +102,9 @@ path& path::operator=(const path& other)
}
-const std::vector <const component*> path::getChildComponents() const
+const std::vector <ref <const component> > path::getChildComponents() const
{
- return std::vector <const component*>();
+ return std::vector <ref <const component> >();
}