take const references where we can in magnet_uri

This commit is contained in:
Arvid Norberg 2015-05-05 05:44:42 +00:00
parent fce3f77744
commit db4a9962e9
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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);