aboutsummaryrefslogtreecommitdiffstats
path: root/src/fileContentHandler.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2013-11-21 21:16:57 +0000
committerVincent Richard <[email protected]>2013-11-21 21:16:57 +0000
commitf9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8 (patch)
tree2bdc90e361a8f6e0a81164cf67afec9f78f9b959 /src/fileContentHandler.cpp
parentPer-protocol include files. (diff)
downloadvmime-f9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8.tar.gz
vmime-f9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8.zip
Boost/C++11 shared pointers.
Diffstat (limited to 'src/fileContentHandler.cpp')
-rw-r--r--src/fileContentHandler.cpp8
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;