summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorHenry Wilson <m3henry@googlemail.com>2018-09-23 17:16:49 +0100
committerPeterN <peter@fuzzle.org>2019-03-26 20:15:57 +0000
commitf3938fdb838685e76bba78974bb6e90e9afc6e22 (patch)
tree38261fac99ecd7fefa295b3789d026e4c575053b /src/network
parentbad2c2154b97613bd6a045cfe1f05cff876da1e4 (diff)
downloadopenttd-f3938fdb838685e76bba78974bb6e90e9afc6e22.tar.xz
Codechange: Replaced SmallVector::Reset() with std::vector::clear() + shrink_to_fit()
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network_content.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/network/network_content.cpp b/src/network/network_content.cpp
index d36aec6ba..8c038796f 100644
--- a/src/network/network_content.cpp
+++ b/src/network/network_content.cpp
@@ -555,7 +555,8 @@ void ClientNetworkContentSocketHandler::OnFailure()
uint files, bytes;
this->DownloadSelectedContent(files, bytes, true);
- this->http_response.Reset();
+ this->http_response.clear();
+ this->http_response.shrink_to_fit();
this->http_response_index = -2;
if (this->curFile != NULL) {