diff options
author | Vincent Richard <[email protected]> | 2016-04-05 20:11:47 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2016-04-05 20:11:47 +0000 |
commit | b1c2d4b61e95ae22bd918c44236f50002e3e48de (patch) | |
tree | 959bb755b476c98b789d417a4c16f8b5ab5de17e /examples | |
parent | Fixed indentation. (diff) | |
download | vmime-b1c2d4b61e95ae22bd918c44236f50002e3e48de.tar.gz vmime-b1c2d4b61e95ae22bd918c44236f50002e3e48de.zip |
Clarified object construction where 'enabled_shared_from_this' is used. Use it only where it is needed.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/example6.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/example6.cpp b/examples/example6.cpp index 09c61014..c2f0c2dd 100644 --- a/examples/example6.cpp +++ b/examples/example6.cpp @@ -38,8 +38,7 @@ // Global session object -static vmime::shared_ptr <vmime::net::session> g_session - = vmime::make_shared <vmime::net::session>(); +static vmime::shared_ptr <vmime::net::session> g_session = vmime::net::session::create(); /** Returns the messaging protocols supported by VMime. |