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/platforms/windows/windowsSocket.cpp | |
parent | Per-protocol include files. (diff) | |
download | vmime-f9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8.tar.gz vmime-f9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8.zip |
Boost/C++11 shared pointers.
Diffstat (limited to 'src/platforms/windows/windowsSocket.cpp')
-rw-r--r-- | src/platforms/windows/windowsSocket.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/platforms/windows/windowsSocket.cpp b/src/platforms/windows/windowsSocket.cpp index dc932965..502d1067 100644 --- a/src/platforms/windows/windowsSocket.cpp +++ b/src/platforms/windows/windowsSocket.cpp @@ -45,7 +45,7 @@ namespace windows { // windowsSocket // -windowsSocket::windowsSocket(ref <vmime::net::timeoutHandler> th) +windowsSocket::windowsSocket(shared_ptr <vmime::net::timeoutHandler> th) : m_timeoutHandler(th), m_desc(INVALID_SOCKET), m_status(0) { WSAData wsaData; @@ -438,15 +438,15 @@ void windowsSocket::waitForData(const WaitOpType t, bool& timedOut) // posixSocketFactory // -ref <vmime::net::socket> windowsSocketFactory::create() +shared_ptr <vmime::net::socket> windowsSocketFactory::create() { - ref <vmime::net::timeoutHandler> th = NULL; - return vmime::create <windowsSocket>(th); + shared_ptr <vmime::net::timeoutHandler> th = NULL; + return make_shared <windowsSocket>(th); } -ref <vmime::net::socket> windowsSocketFactory::create(ref <vmime::net::timeoutHandler> th) +shared_ptr <vmime::net::socket> windowsSocketFactory::create(shared_ptr <vmime::net::timeoutHandler> th) { - return vmime::create <windowsSocket>(th); + return make_shared <windowsSocket>(th); } } // posix |