summaryrefslogtreecommitdiff
path: root/methods/http.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2024-11-19 22:42:44 +0000
committerDavid Kalnischkies <david@kalnischkies.de>2024-11-22 12:13:25 +0000
commit8c760266c8c736bff62055c008ab74d78f3ed82a (patch)
treebb6f4b311745f5334d95e0d36c7a2f85384f0ee2 /methods/http.cc
parent7578b7031921231400be78fa8c2893bbd5ea18df (diff)
Tag hidden acquire classes as final for devirtualization
gcc reports `warning: Declaring type ‘class X’ final would enable devirtualization of Y calls [-Wsuggest-final-types]`. Not that this would massively improve performance, but it shouldn't hurt telling the compiler what is obvious for a human.
Diffstat (limited to 'methods/http.cc')
-rw-r--r--methods/http.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/methods/http.cc b/methods/http.cc
index 4d0e60d93..1e76a1f57 100644
--- a/methods/http.cc
+++ b/methods/http.cc
@@ -279,7 +279,7 @@ CircleBuf::~CircleBuf() /*{{{*/
// UnwrapHTTPConnect - Does the HTTP CONNECT handshake /*{{{*/
// ---------------------------------------------------------------------
/* Performs a TLS handshake on the socket */
-struct HttpConnectFd : public MethodFd
+struct HttpConnectFd final : public MethodFd
{
std::unique_ptr<MethodFd> UnderlyingFd;
std::string Buffer;