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/net/smtp/SMTPResponse.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/net/smtp/SMTPResponse.cpp') diff --git a/src/net/smtp/SMTPResponse.cpp b/src/net/smtp/SMTPResponse.cpp index 9367dcd4..baefc38d 100644 --- a/src/net/smtp/SMTPResponse.cpp +++ b/src/net/smtp/SMTPResponse.cpp @@ -43,7 +43,7 @@ namespace net { namespace smtp { -SMTPResponse::SMTPResponse(ref sok, ref toh, const state& st) +SMTPResponse::SMTPResponse(shared_ptr sok, shared_ptr toh, const state& st) : m_socket(sok), m_timeoutHandler(toh), m_responseBuffer(st.responseBuffer), m_responseContinues(false) { @@ -94,10 +94,10 @@ const string SMTPResponse::getText() const // static -ref SMTPResponse::readResponse - (ref sok, ref toh, const state& st) +shared_ptr SMTPResponse::readResponse + (shared_ptr sok, shared_ptr toh, const state& st) { - ref resp = vmime::create (sok, toh, st); + shared_ptr resp = shared_ptr (new SMTPResponse(sok, toh, st)); resp->readResponse(); -- cgit v1.2.3