diff options
author | peter1138 <peter1138@openttd.org> | 2019-03-24 16:24:06 +0000 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2019-03-24 17:38:42 +0000 |
commit | 07de9d6c3f48b6a3b92e11d553aca145546c62ef (patch) | |
tree | fab2b0d98265ea5f0ca535ce3be68c57bf4c32ee /src/network/core/tcp_http.h | |
parent | b1fb3f4fb8c389d36ba670558a169578f7d142e2 (diff) | |
download | openttd-07de9d6c3f48b6a3b92e11d553aca145546c62ef.tar.xz |
Codechange: Use override keyword in networking classes.
Diffstat (limited to 'src/network/core/tcp_http.h')
-rw-r--r-- | src/network/core/tcp_http.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/network/core/tcp_http.h b/src/network/core/tcp_http.h index ec969264b..5a5cdd9f2 100644 --- a/src/network/core/tcp_http.h +++ b/src/network/core/tcp_http.h @@ -60,7 +60,7 @@ public: return this->sock != INVALID_SOCKET; } - virtual NetworkRecvStatus CloseConnection(bool error = true); + NetworkRecvStatus CloseConnection(bool error = true) override; NetworkHTTPSocketHandler(SOCKET sock, HTTPCallback *callback, const char *host, const char *url, const char *data, int depth); @@ -106,13 +106,13 @@ public: free(this->url); } - virtual void OnFailure() + void OnFailure() override { this->callback->OnFailure(); free(this->data); } - virtual void OnConnect(SOCKET s) + void OnConnect(SOCKET s) override { new NetworkHTTPSocketHandler(s, this->callback, this->address.GetHostname(), this->url, this->data, this->depth); /* We've relinquished control of data now. */ |