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 /tests/testUtils.hpp | |
parent | Per-protocol include files. (diff) | |
download | vmime-f9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8.tar.gz vmime-f9913fa28a27f23fde2d4956c62cbb2fb2bc2ee8.zip |
Boost/C++11 shared pointers.
Diffstat (limited to 'tests/testUtils.hpp')
-rw-r--r-- | tests/testUtils.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/testUtils.hpp b/tests/testUtils.hpp index 01910cbc..fdcca575 100644 --- a/tests/testUtils.hpp +++ b/tests/testUtils.hpp @@ -315,14 +315,14 @@ class testSocketFactory : public vmime::net::socketFactory { public: - vmime::ref <vmime::net::socket> create() + vmime::shared_ptr <vmime::net::socket> create() { - return vmime::create <T>(); + return vmime::make_shared <T>(); } - vmime::ref <vmime::net::socket> create(vmime::ref <vmime::net::timeoutHandler> /* th */) + vmime::shared_ptr <vmime::net::socket> create(vmime::shared_ptr <vmime::net::timeoutHandler> /* th */) { - return vmime::create <T>(); + return vmime::make_shared <T>(); } }; @@ -366,7 +366,7 @@ class testTimeoutHandlerFactory : public vmime::net::timeoutHandlerFactory { public: - vmime::ref <vmime::net::timeoutHandler> create(); + vmime::shared_ptr <vmime::net::timeoutHandler> create(); }; |