diff options
| author | levlam <levlam@telegram.org> | 2021-07-04 05:58:54 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2021-07-04 05:58:54 +0300 |
| commit | 40c5d47717a4c047957d6da3e6f7cf42fe702924 (patch) | |
| tree | 93775787474e486893f3d30b4a901042bf1b1314 /tdnet | |
| parent | edfa5d1d982a8d499877eb9fafc5192a0baa2974 (diff) | |
Make inherited classes final if possible.
Diffstat (limited to 'tdnet')
| -rw-r--r-- | tdnet/td/net/GetHostByNameActor.cpp | 4 | ||||
| -rw-r--r-- | tdnet/td/net/HttpProxy.h | 2 | ||||
| -rw-r--r-- | tdnet/td/net/NetStats.h | 2 | ||||
| -rw-r--r-- | tdnet/td/net/Socks5.h | 2 | ||||
| -rw-r--r-- | tdnet/td/net/SslStream.cpp | 4 | ||||
| -rw-r--r-- | tdnet/td/net/Wget.h | 2 |
6 files changed, 8 insertions, 8 deletions
diff --git a/tdnet/td/net/GetHostByNameActor.cpp b/tdnet/td/net/GetHostByNameActor.cpp index c1f944c31..227780287 100644 --- a/tdnet/td/net/GetHostByNameActor.cpp +++ b/tdnet/td/net/GetHostByNameActor.cpp @@ -21,7 +21,7 @@ namespace td { namespace detail { -class GoogleDnsResolver : public Actor { +class GoogleDnsResolver final : public Actor { public: GoogleDnsResolver(std::string host, bool prefer_ipv6, Promise<IPAddress> promise) : host_(std::move(host)), prefer_ipv6_(prefer_ipv6), promise_(std::move(promise)) { @@ -86,7 +86,7 @@ class GoogleDnsResolver : public Actor { } }; -class NativeDnsResolver : public Actor { +class NativeDnsResolver final : public Actor { public: NativeDnsResolver(std::string host, bool prefer_ipv6, Promise<IPAddress> promise) : host_(std::move(host)), prefer_ipv6_(prefer_ipv6), promise_(std::move(promise)) { diff --git a/tdnet/td/net/HttpProxy.h b/tdnet/td/net/HttpProxy.h index 613dfc513..3604af43b 100644 --- a/tdnet/td/net/HttpProxy.h +++ b/tdnet/td/net/HttpProxy.h @@ -12,7 +12,7 @@ namespace td { -class HttpProxy : public TransparentProxy { +class HttpProxy final : public TransparentProxy { public: using TransparentProxy::TransparentProxy; diff --git a/tdnet/td/net/NetStats.h b/tdnet/td/net/NetStats.h index d3cc0ba4b..71478b025 100644 --- a/tdnet/td/net/NetStats.h +++ b/tdnet/td/net/NetStats.h @@ -91,7 +91,7 @@ class NetStats { } private: - class Impl : public NetStatsCallback { + class Impl final : public NetStatsCallback { public: NetStatsData get_stats() const { NetStatsData res; diff --git a/tdnet/td/net/Socks5.h b/tdnet/td/net/Socks5.h index 97531011f..3ad30eed2 100644 --- a/tdnet/td/net/Socks5.h +++ b/tdnet/td/net/Socks5.h @@ -12,7 +12,7 @@ namespace td { -class Socks5 : public TransparentProxy { +class Socks5 final : public TransparentProxy { public: using TransparentProxy::TransparentProxy; diff --git a/tdnet/td/net/SslStream.cpp b/tdnet/td/net/SslStream.cpp index 8d43c43a0..b9061b94d 100644 --- a/tdnet/td/net/SslStream.cpp +++ b/tdnet/td/net/SslStream.cpp @@ -384,7 +384,7 @@ class SslStreamImpl { return size; } - class SslReadByteFlow : public ByteFlowBase { + class SslReadByteFlow final : public ByteFlowBase { public: explicit SslReadByteFlow(SslStreamImpl *stream) : stream_(stream) { } @@ -411,7 +411,7 @@ class SslStreamImpl { SslStreamImpl *stream_; }; - class SslWriteByteFlow : public ByteFlowBase { + class SslWriteByteFlow final : public ByteFlowBase { public: explicit SslWriteByteFlow(SslStreamImpl *stream) : stream_(stream) { } diff --git a/tdnet/td/net/Wget.h b/tdnet/td/net/Wget.h index 4f22a085e..723efda12 100644 --- a/tdnet/td/net/Wget.h +++ b/tdnet/td/net/Wget.h @@ -20,7 +20,7 @@ namespace td { -class Wget : public HttpOutboundConnection::Callback { +class Wget final : public HttpOutboundConnection::Callback { public: explicit Wget(Promise<unique_ptr<HttpQuery>> promise, string url, std::vector<std::pair<string, string>> headers = {}, int32 timeout_in = 10, int32 ttl = 3, bool prefer_ipv6 = false, |
