diff --git a/include/libtorrent/torrent_info.hpp b/include/libtorrent/torrent_info.hpp index 85900c6a6..e9cd41256 100644 --- a/include/libtorrent/torrent_info.hpp +++ b/include/libtorrent/torrent_info.hpp @@ -165,7 +165,6 @@ namespace libtorrent { public: #ifndef BOOST_NO_EXCEPTIONS - torrent_info(sha1_hash const& info_hash); torrent_info(lazy_entry const& torrent_file); torrent_info(char const* buffer, int size); torrent_info(fs::path const& filename); diff --git a/src/magnet_uri.cpp b/src/magnet_uri.cpp index e83ee07cb..717d4fa95 100644 --- a/src/magnet_uri.cpp +++ b/src/magnet_uri.cpp @@ -125,7 +125,7 @@ namespace libtorrent { error_code ec; torrent_handle ret = add_magnet_uri(ses, uri, p, ec); - if (ec) throw libtorrent_exceptions(ec); + if (ec) throw libtorrent_exception(ec); return ret; } #endif