Merge pull request #12113 from Chocobo1/smart_ptr

Use helper functions to construct smart pointers
This commit is contained in:
Mike Tzou
2020-03-06 13:12:41 +08:00
committed by GitHub
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