diff options
author | Vincent Richard <[email protected]> | 2005-09-02 20:30:33 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2005-09-02 20:30:33 +0000 |
commit | df140bb13e20da47292b5d8fa80cd9d5cbd3a74a (patch) | |
tree | c8a8f3b3c12a6a620a3377053a992b3cca56fec6 /src/net/message.cpp | |
parent | Throw exception in debug mode when thisRef()/thisWeakRef() is called from the... (diff) | |
download | vmime-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.cpp | 12 |
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(); } |