From f9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Thu, 21 Nov 2013 22:16:57 +0100 Subject: Boost/C++11 shared pointers. --- src/fileContentHandler.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/fileContentHandler.cpp') diff --git a/src/fileContentHandler.cpp b/src/fileContentHandler.cpp index 295bc887..53ec9f69 100644 --- a/src/fileContentHandler.cpp +++ b/src/fileContentHandler.cpp @@ -35,7 +35,7 @@ fileContentHandler::fileContentHandler() fileContentHandler::fileContentHandler - (ref file, const vmime::encoding& enc) + (shared_ptr file, const vmime::encoding& enc) { setData(file, enc); } @@ -61,14 +61,14 @@ fileContentHandler& fileContentHandler::operator=(const fileContentHandler& cts) } -ref fileContentHandler::clone() const +shared_ptr fileContentHandler::clone() const { - return vmime::create (*this); + return make_shared (*this); } void fileContentHandler::setData - (ref file, const vmime::encoding& enc) + (shared_ptr file, const vmime::encoding& enc) { m_file = file; m_encoding = enc; -- cgit v1.2.3