From b1c2d4b61e95ae22bd918c44236f50002e3e48de Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Tue, 5 Apr 2016 22:11:47 +0200 Subject: Clarified object construction where 'enabled_shared_from_this' is used. Use it only where it is needed. --- tests/net/imap/IMAPCommandTest.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/net/imap/IMAPCommandTest.cpp') diff --git a/tests/net/imap/IMAPCommandTest.cpp b/tests/net/imap/IMAPCommandTest.cpp index 00054781..f274bb27 100644 --- a/tests/net/imap/IMAPCommandTest.cpp +++ b/tests/net/imap/IMAPCommandTest.cpp @@ -458,8 +458,7 @@ VMIME_TEST_SUITE_BEGIN(IMAPCommandTest) { vmime::shared_ptr cmd = IMAPCommand::createCommand("MY_COMMAND param1 param2"); - vmime::shared_ptr sess = - vmime::make_shared (); + vmime::shared_ptr sess = vmime::net::session::create(); vmime::shared_ptr auth = vmime::make_shared (); -- cgit v1.2.3