marked final error category classes, avoid -Wnon-virtual-dtor
This commit is contained in:
parent
c75dc073e1
commit
f23daa8262
|
@ -157,7 +157,7 @@ namespace {
|
|||
}
|
||||
|
||||
|
||||
struct bdecode_error_category : boost::system::error_category
|
||||
struct bdecode_error_category final : boost::system::error_category
|
||||
{
|
||||
const char* name() const BOOST_SYSTEM_NOEXCEPT override;
|
||||
std::string message(int ev) const override;
|
||||
|
|
|
@ -38,7 +38,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||
|
||||
namespace libtorrent {
|
||||
|
||||
struct libtorrent_error_category : boost::system::error_category
|
||||
struct libtorrent_error_category final : boost::system::error_category
|
||||
{
|
||||
const char* name() const BOOST_SYSTEM_NOEXCEPT override;
|
||||
std::string message(int ev) const override;
|
||||
|
@ -282,7 +282,7 @@ namespace libtorrent {
|
|||
return libtorrent_category;
|
||||
}
|
||||
|
||||
struct TORRENT_EXPORT http_error_category : boost::system::error_category
|
||||
struct http_error_category final : boost::system::error_category
|
||||
{
|
||||
const char* name() const BOOST_SYSTEM_NOEXCEPT override
|
||||
{ return "http"; }
|
||||
|
|
|
@ -55,7 +55,7 @@ namespace {
|
|||
|
||||
namespace libtorrent {
|
||||
|
||||
struct gzip_error_category : boost::system::error_category
|
||||
struct gzip_error_category final : boost::system::error_category
|
||||
{
|
||||
const char* name() const BOOST_SYSTEM_NOEXCEPT override;
|
||||
std::string message(int ev) const override;
|
||||
|
|
|
@ -51,7 +51,7 @@ using namespace std::placeholders;
|
|||
|
||||
namespace libtorrent {
|
||||
|
||||
struct i2p_error_category : boost::system::error_category
|
||||
struct i2p_error_category final : boost::system::error_category
|
||||
{
|
||||
const char* name() const BOOST_SYSTEM_NOEXCEPT override
|
||||
{ return "i2p error"; }
|
||||
|
|
|
@ -62,7 +62,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||
|
||||
namespace libtorrent {
|
||||
|
||||
struct TORRENT_EXPORT pcp_error_category : boost::system::error_category
|
||||
struct pcp_error_category final : boost::system::error_category
|
||||
{
|
||||
const char* name() const BOOST_SYSTEM_NOEXCEPT override
|
||||
{ return "pcp error"; }
|
||||
|
|
|
@ -43,7 +43,7 @@ namespace libtorrent {
|
|||
{ return {e, socks_category()}; }
|
||||
}
|
||||
|
||||
struct socks_error_category : boost::system::error_category
|
||||
struct socks_error_category final : boost::system::error_category
|
||||
{
|
||||
const char* name() const BOOST_SYSTEM_NOEXCEPT override
|
||||
{ return "socks"; }
|
||||
|
|
|
@ -1173,7 +1173,7 @@ namespace {
|
|||
|
||||
}
|
||||
|
||||
struct upnp_error_category : boost::system::error_category
|
||||
struct upnp_error_category final : boost::system::error_category
|
||||
{
|
||||
const char* name() const BOOST_SYSTEM_NOEXCEPT override
|
||||
{
|
||||
|
|
|
@ -178,7 +178,7 @@ namespace {
|
|||
}
|
||||
};
|
||||
|
||||
struct utf8_error_category : boost::system::error_category
|
||||
struct utf8_error_category final : boost::system::error_category
|
||||
{
|
||||
const char* name() const BOOST_SYSTEM_NOEXCEPT override
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue