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/charset.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/charset.cpp') diff --git a/src/charset.cpp b/src/charset.cpp index cc2ba9ba..2a39b03f 100644 --- a/src/charset.cpp +++ b/src/charset.cpp @@ -280,9 +280,9 @@ const bool charset::operator!=(const charset& value) const } -charset* charset::clone() const +ref charset::clone() const { - return new charset(m_name); + return vmime::create (m_name); } @@ -298,9 +298,9 @@ void charset::copyFrom(const component& other) } -const std::vector charset::getChildComponents() const +const std::vector > charset::getChildComponents() const { - return std::vector (); + return std::vector >(); } -- cgit v1.2.3