forked from premiere/premiere-libtorrent
take const references where we can in magnet_uri
This commit is contained in:
parent
fce3f77744
commit
db4a9962e9
|
@ -65,13 +65,13 @@ namespace libtorrent
|
|||
// deprecated in 0.16. Instead, pass in the magnet link as add_torrent_params::url
|
||||
TORRENT_DEPRECATED
|
||||
torrent_handle TORRENT_EXPORT add_magnet_uri(session& ses, std::string const& uri
|
||||
, add_torrent_params p);
|
||||
, add_torrent_params const& p);
|
||||
#endif
|
||||
|
||||
// deprecated in 0.16. Instead, pass in the magnet link as add_torrent_params::url
|
||||
TORRENT_DEPRECATED
|
||||
torrent_handle TORRENT_EXPORT add_magnet_uri(session& ses, std::string const& uri
|
||||
, add_torrent_params p, error_code& ec);
|
||||
, add_torrent_params const& p, error_code& ec);
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -121,7 +121,7 @@ namespace libtorrent
|
|||
}
|
||||
|
||||
torrent_handle add_magnet_uri(session& ses, std::string const& uri
|
||||
, add_torrent_params p, error_code& ec)
|
||||
, add_torrent_params const& p, error_code& ec)
|
||||
{
|
||||
return add_magnet_uri_deprecated(ses, uri, p, ec);
|
||||
}
|
||||
|
@ -160,7 +160,7 @@ namespace libtorrent
|
|||
}
|
||||
|
||||
torrent_handle add_magnet_uri(session& ses, std::string const& uri
|
||||
, add_torrent_params p)
|
||||
, add_torrent_params const& p)
|
||||
{
|
||||
error_code ec;
|
||||
torrent_handle ret = add_magnet_uri_deprecated(ses, uri, p, ec);
|
||||
|
|
Loading…
Reference in New Issue