Use helper functions to construct smart pointers

This commit is contained in:
Chocobo1
2020-03-05 00:39:41 +08:00
committed by sledgehammer999
parent 30f2d11203
commit ae9b8720af
7 changed files with 10 additions and 10 deletions

View File

@@ -60,7 +60,7 @@ std::shared_ptr<lt::torrent_plugin> NativeSessionExtension::new_torrent(const lt
#else
boost::shared_ptr<lt::torrent_plugin> NativeSessionExtension::new_torrent(const lt::torrent_handle &torrentHandle, void *)
{
return boost::shared_ptr<lt::torrent_plugin> {new NativeTorrentExtension {torrentHandle}};
return boost::make_shared<NativeTorrentExtension>(torrentHandle);
}
#endif