marked final error category classes, avoid -Wnon-virtual-dtor

This commit is contained in:
Alden Torres 2019-01-19 16:47:48 -05:00 committed by Arvid Norberg
parent c75dc073e1
commit f23daa8262
8 changed files with 9 additions and 9 deletions

View File

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

View File

@ -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"; }

View File

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

View File

@ -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"; }

View File

@ -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"; }

View File

@ -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"; }

View File

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

View File

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