From 681297e10b666e13cc463f6fbb16236f36c3266c Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Tue, 12 Jul 2005 22:28:02 +0000 Subject: Reference counting and smart pointers. --- src/path.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/path.cpp') diff --git a/src/path.cpp b/src/path.cpp index 153facd3..5cb6371c 100644 --- a/src/path.cpp +++ b/src/path.cpp @@ -89,9 +89,9 @@ void path::copyFrom(const component& other) } -path* path::clone() const +ref path::clone() const { - return new path(*this); + return vmime::create (*this); } @@ -102,9 +102,9 @@ path& path::operator=(const path& other) } -const std::vector path::getChildComponents() const +const std::vector > path::getChildComponents() const { - return std::vector (); + return std::vector >(); } -- cgit v1.2.3