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 /vmime/net/smtp/SMTPChunkingOutputStreamAdapter.hpp | |
parent | Per-protocol include files. (diff) | |
download | vmime-f9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8.tar.gz vmime-f9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8.zip |
Boost/C++11 shared pointers.
Diffstat (limited to 'vmime/net/smtp/SMTPChunkingOutputStreamAdapter.hpp')
-rw-r--r-- | vmime/net/smtp/SMTPChunkingOutputStreamAdapter.hpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/vmime/net/smtp/SMTPChunkingOutputStreamAdapter.hpp b/vmime/net/smtp/SMTPChunkingOutputStreamAdapter.hpp index a29fbfb4..6ca6c527 100644 --- a/vmime/net/smtp/SMTPChunkingOutputStreamAdapter.hpp +++ b/vmime/net/smtp/SMTPChunkingOutputStreamAdapter.hpp @@ -46,11 +46,9 @@ class SMTPConnection; */ class VMIME_EXPORT SMTPChunkingOutputStreamAdapter : public utility::outputStream { - friend class vmime::creator; - public: - SMTPChunkingOutputStreamAdapter(ref <SMTPConnection> conn); + SMTPChunkingOutputStreamAdapter(shared_ptr <SMTPConnection> conn); void write(const value_type* const data, const size_type count); void flush(); @@ -65,7 +63,7 @@ private: void sendChunk(const value_type* const data, const size_type count, const bool last); - ref <SMTPConnection> m_connection; + shared_ptr <SMTPConnection> m_connection; value_type m_buffer[262144]; // 256 KB size_type m_bufferSize; |