aboutsummaryrefslogtreecommitdiffstats
path: root/src/messageId.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/messageId.cpp
parentAdded contentHandler::extractRaw(). (diff)
downloadvmime-681297e10b666e13cc463f6fbb16236f36c3266c.tar.gz
vmime-681297e10b666e13cc463f6fbb16236f36c3266c.zip
Reference counting and smart pointers.
Diffstat (limited to 'src/messageId.cpp')
-rw-r--r--src/messageId.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/messageId.cpp b/src/messageId.cpp
index 9e878c2f..b8490792 100644
--- a/src/messageId.cpp
+++ b/src/messageId.cpp
@@ -129,7 +129,7 @@ void messageId::parse(const string& buffer, const string::size_type position,
}
-messageId* messageId::parseNext(const string& buffer, const string::size_type position,
+ref <messageId> messageId::parseNext(const string& buffer, const string::size_type position,
const string::size_type end, string::size_type* newPosition)
{
string::size_type pos = position;
@@ -144,7 +144,7 @@ messageId* messageId::parseNext(const string& buffer, const string::size_type po
while (pos < end && !parserHelpers::isSpace(buffer[pos]))
++pos;
- messageId* mid = new messageId();
+ ref <messageId> mid = vmime::create <messageId>();
mid->parse(buffer, begin, pos, NULL);
if (newPosition != NULL)
@@ -220,9 +220,9 @@ const bool messageId::operator!=(const messageId& mid) const
}
-messageId* messageId::clone() const
+ref <component> messageId::clone() const
{
- return new messageId(*this);
+ return vmime::create <messageId>(*this);
}
@@ -266,9 +266,9 @@ void messageId::setRight(const string& right)
}
-const std::vector <const component*> messageId::getChildComponents() const
+const std::vector <ref <const component> > messageId::getChildComponents() const
{
- return std::vector <const component*>();
+ return std::vector <ref <const component> >();
}