diff options
| author | David Kalnischkies <david@kalnischkies.de> | 2024-11-19 22:42:44 +0000 |
|---|---|---|
| committer | David Kalnischkies <david@kalnischkies.de> | 2024-11-22 12:13:25 +0000 |
| commit | 8c760266c8c736bff62055c008ab74d78f3ed82a (patch) | |
| tree | bb6f4b311745f5334d95e0d36c7a2f85384f0ee2 /methods/http.h | |
| parent | 7578b7031921231400be78fa8c2893bbd5ea18df (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.h')
| -rw-r--r-- | methods/http.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/methods/http.h b/methods/http.h index cae579afe..5bfcbc8a2 100644 --- a/methods/http.h +++ b/methods/http.h @@ -90,7 +90,7 @@ class CircleBuf ~CircleBuf(); }; -struct HttpServerState: public ServerState +struct HttpServerState final : public ServerState { // This is the connection itself. Output is data FROM the server CircleBuf In; @@ -121,7 +121,7 @@ struct HttpServerState: public ServerState virtual ~HttpServerState() {Close();}; }; -class HttpMethod : public BaseHttpMethod +class HttpMethod final : public BaseHttpMethod { public: virtual void SendReq(FetchItem *Itm) APT_OVERRIDE; |
