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/windows/windowsHandler.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/platforms/windows/windowsHandler.cpp') diff --git a/src/platforms/windows/windowsHandler.cpp b/src/platforms/windows/windowsHandler.cpp index d4027801..5b9c37ce 100644 --- a/src/platforms/windows/windowsHandler.cpp +++ b/src/platforms/windows/windowsHandler.cpp @@ -57,10 +57,10 @@ windowsHandler::windowsHandler() WSAStartup(MAKEWORD(1, 1), &wsaData); #if VMIME_HAVE_MESSAGING_FEATURES - m_socketFactory = vmime::create (); + m_socketFactory = make_shared (); #endif #if VMIME_HAVE_FILESYSTEM_FEATURES - m_fileSysFactory = vmime::create (); + m_fileSysFactory = make_shared (); #endif } @@ -274,7 +274,7 @@ unsigned int windowsHandler::getThreadId() const #if VMIME_HAVE_MESSAGING_FEATURES -ref windowsHandler::getSocketFactory() +shared_ptr windowsHandler::getSocketFactory() { return m_socketFactory; } @@ -284,13 +284,13 @@ ref windowsHandler::getSocketFactory() #if VMIME_HAVE_FILESYSTEM_FEATURES -ref windowsHandler::getFileSystemFactory() +shared_ptr windowsHandler::getFileSystemFactory() { return m_fileSysFactory; } -ref windowsHandler::getChildProcessFactory() +shared_ptr windowsHandler::getChildProcessFactory() { // TODO: Not implemented return (NULL); @@ -314,9 +314,9 @@ void windowsHandler::generateRandomBytes(unsigned char* buffer, const unsigned i } -ref windowsHandler::createCriticalSection() +shared_ptr windowsHandler::createCriticalSection() { - return vmime::create (); + return make_shared (); } -- cgit v1.2.3