peer_connection_handle::find_plugin should be const
This commit is contained in:
parent
a9e5ef1521
commit
8e600c2201
|
@ -57,7 +57,7 @@ struct TORRENT_EXPORT peer_connection_handle
|
||||||
connection_type type() const;
|
connection_type type() const;
|
||||||
|
|
||||||
void add_extension(std::shared_ptr<peer_plugin>);
|
void add_extension(std::shared_ptr<peer_plugin>);
|
||||||
peer_plugin const* find_plugin(string_view type);
|
peer_plugin const* find_plugin(string_view type) const;
|
||||||
|
|
||||||
bool is_seed() const;
|
bool is_seed() const;
|
||||||
|
|
||||||
|
|
|
@ -57,7 +57,7 @@ void peer_connection_handle::add_extension(std::shared_ptr<peer_plugin> ext)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
peer_plugin const* peer_connection_handle::find_plugin(string_view type)
|
peer_plugin const* peer_connection_handle::find_plugin(string_view type) const
|
||||||
{
|
{
|
||||||
#ifndef TORRENT_DISABLE_EXTENSIONS
|
#ifndef TORRENT_DISABLE_EXTENSIONS
|
||||||
std::shared_ptr<peer_connection> pc = native_handle();
|
std::shared_ptr<peer_connection> pc = native_handle();
|
||||||
|
|
Loading…
Reference in New Issue