aboutsummaryrefslogtreecommitdiffstats
path: root/src/parameter.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/parameter.cpp
parentAdded contentHandler::extractRaw(). (diff)
downloadvmime-681297e10b666e13cc463f6fbb16236f36c3266c.tar.gz
vmime-681297e10b666e13cc463f6fbb16236f36c3266c.zip
Reference counting and smart pointers.
Diffstat (limited to 'src/parameter.cpp')
-rw-r--r--src/parameter.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/parameter.cpp b/src/parameter.cpp
index 988755be..e3c84b85 100644
--- a/src/parameter.cpp
+++ b/src/parameter.cpp
@@ -25,9 +25,9 @@ namespace vmime
{
-parameter* parameter::clone() const
+ref <component> parameter::clone() const
{
- parameter* p = parameterFactory::getInstance()->create(m_name);
+ ref <parameter> p = parameterFactory::getInstance()->create(m_name);
p->copyFrom(*this);
return (p);
@@ -169,11 +169,11 @@ void parameter::generateValue(utility::outputStream& os, const string::size_type
}
-const std::vector <const component*> parameter::getChildComponents() const
+const std::vector <ref <const component> > parameter::getChildComponents() const
{
- std::vector <const component*> list;
+ std::vector <ref <const component> > list;
- list.push_back(&getValue());
+ list.push_back(getValueImp());
return (list);
}