aboutsummaryrefslogtreecommitdiffstats
path: root/src/relay.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/relay.cpp
parentAdded contentHandler::extractRaw(). (diff)
downloadvmime-681297e10b666e13cc463f6fbb16236f36c3266c.tar.gz
vmime-681297e10b666e13cc463f6fbb16236f36c3266c.zip
Reference counting and smart pointers.
Diffstat (limited to 'src/relay.cpp')
-rw-r--r--src/relay.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/relay.cpp b/src/relay.cpp
index 3724bde2..bdb14a90 100644
--- a/src/relay.cpp
+++ b/src/relay.cpp
@@ -244,9 +244,9 @@ relay& relay::operator=(const relay& other)
}
-relay* relay::clone() const
+ref <component> relay::clone() const
{
- return new relay(*this);
+ return vmime::create <relay>(*this);
}
@@ -334,10 +334,10 @@ std::vector <string>& relay::getWithList()
}
-const std::vector <const component*> relay::getChildComponents() const
+const std::vector <ref <const component> > relay::getChildComponents() const
{
// TODO: should fields inherit from 'component'? (using typeAdapter)
- return std::vector <const component*>();
+ return std::vector <ref <const component> >();
}