diff options
author | Vincent Richard <[email protected]> | 2013-11-21 21:16:57 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2013-11-21 21:16:57 +0000 |
commit | f9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8 (patch) | |
tree | 2bdc90e361a8f6e0a81164cf67afec9f78f9b959 /src/fileContentHandler.cpp | |
parent | Per-protocol include files. (diff) | |
download | vmime-f9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8.tar.gz vmime-f9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8.zip |
Boost/C++11 shared pointers.
Diffstat (limited to 'src/fileContentHandler.cpp')
-rw-r--r-- | src/fileContentHandler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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 <utility::file> file, const vmime::encoding& enc) + (shared_ptr <utility::file> file, const vmime::encoding& enc) { setData(file, enc); } @@ -61,14 +61,14 @@ fileContentHandler& fileContentHandler::operator=(const fileContentHandler& cts) } -ref <contentHandler> fileContentHandler::clone() const +shared_ptr <contentHandler> fileContentHandler::clone() const { - return vmime::create <fileContentHandler>(*this); + return make_shared <fileContentHandler>(*this); } void fileContentHandler::setData - (ref <utility::file> file, const vmime::encoding& enc) + (shared_ptr <utility::file> file, const vmime::encoding& enc) { m_file = file; m_encoding = enc; |