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/platforms/posix/posixHandler.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/platforms/posix/posixHandler.cpp') diff --git a/src/platforms/posix/posixHandler.cpp b/src/platforms/posix/posixHandler.cpp index 73005d7e..b5d08ce6 100644 --- a/src/platforms/posix/posixHandler.cpp +++ b/src/platforms/posix/posixHandler.cpp @@ -109,11 +109,11 @@ namespace posix { posixHandler::posixHandler() { #if VMIME_HAVE_MESSAGING_FEATURES - m_socketFactory = vmime::create (); + m_socketFactory = make_shared (); #endif #if VMIME_HAVE_FILESYSTEM_FEATURES - m_fileSysFactory = vmime::create (); - m_childProcFactory = vmime::create (); + m_fileSysFactory = make_shared (); + m_childProcFactory = make_shared (); #endif } @@ -249,7 +249,7 @@ unsigned int posixHandler::getThreadId() const #if VMIME_HAVE_MESSAGING_FEATURES -ref posixHandler::getSocketFactory() +shared_ptr posixHandler::getSocketFactory() { return m_socketFactory; } @@ -259,13 +259,13 @@ ref posixHandler::getSocketFactory() #if VMIME_HAVE_FILESYSTEM_FEATURES -ref posixHandler::getFileSystemFactory() +shared_ptr posixHandler::getFileSystemFactory() { return m_fileSysFactory; } -ref posixHandler::getChildProcessFactory() +shared_ptr posixHandler::getChildProcessFactory() { return m_childProcFactory; } @@ -308,9 +308,9 @@ void posixHandler::generateRandomBytes(unsigned char* buffer, const unsigned int } -ref posixHandler::createCriticalSection() +shared_ptr posixHandler::createCriticalSection() { - return vmime::create (); + return make_shared (); } -- cgit v1.2.3