From df140bb13e20da47292b5d8fa80cd9d5cbd3a74a Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Fri, 2 Sep 2005 20:30:33 +0000 Subject: Updated code to use smart pointers. --- src/net/message.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/net/message.cpp') 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 part::getPartAt(const int pos) const { - return (getStructure()[x]); + return getStructure()->getPartAt(pos); } -part& part::operator[](const int x) +ref 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(); } -- cgit v1.2.3