From 8e600c22018d12fd9cf95c084d35849d98d01f23 Mon Sep 17 00:00:00 2001 From: Steven Siloti Date: Sun, 28 May 2017 21:08:47 -0700 Subject: [PATCH] peer_connection_handle::find_plugin should be const --- include/libtorrent/peer_connection_handle.hpp | 2 +- src/peer_connection_handle.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/libtorrent/peer_connection_handle.hpp b/include/libtorrent/peer_connection_handle.hpp index 709572668..278d2d906 100644 --- a/include/libtorrent/peer_connection_handle.hpp +++ b/include/libtorrent/peer_connection_handle.hpp @@ -57,7 +57,7 @@ struct TORRENT_EXPORT peer_connection_handle connection_type type() const; void add_extension(std::shared_ptr); - peer_plugin const* find_plugin(string_view type); + peer_plugin const* find_plugin(string_view type) const; bool is_seed() const; diff --git a/src/peer_connection_handle.cpp b/src/peer_connection_handle.cpp index a74f22713..f450637c4 100644 --- a/src/peer_connection_handle.cpp +++ b/src/peer_connection_handle.cpp @@ -57,7 +57,7 @@ void peer_connection_handle::add_extension(std::shared_ptr ext) #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 std::shared_ptr pc = native_handle();