aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/message.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2005-09-02 20:30:33 +0000
committerVincent Richard <[email protected]>2005-09-02 20:30:33 +0000
commitdf140bb13e20da47292b5d8fa80cd9d5cbd3a74a (patch)
treec8a8f3b3c12a6a620a3377053a992b3cca56fec6 /src/net/message.cpp
parentThrow exception in debug mode when thisRef()/thisWeakRef() is called from the... (diff)
downloadvmime-df140bb13e20da47292b5d8fa80cd9d5cbd3a74a.tar.gz
vmime-df140bb13e20da47292b5d8fa80cd9d5cbd3a74a.zip
Updated code to use smart pointers.
Diffstat (limited to 'src/net/message.cpp')
-rw-r--r--src/net/message.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/net/message.cpp b/src/net/message.cpp
index 0c55d1da..98ba4228 100644
--- a/src/net/message.cpp
+++ b/src/net/message.cpp
@@ -24,21 +24,21 @@ namespace vmime {
namespace net {
-const part& part::operator[](const int x) const
+ref <const part> part::getPartAt(const int pos) const
{
- return (getStructure()[x]);
+ return getStructure()->getPartAt(pos);
}
-part& part::operator[](const int x)
+ref <part> part::getPartAt(const int pos)
{
- return (getStructure()[x]);
+ return getStructure()->getPartAt(pos);
}
-const int part::getCount() const
+const int part::getPartCount() const
{
- return (getStructure().getCount());
+ return getStructure()->getPartCount();
}