diff options
author | Henry Wilson <m3henry@googlemail.com> | 2018-09-20 23:44:14 +0100 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2019-03-26 20:15:57 +0000 |
commit | bfd79e59dc34314a089a0024af56d04d84456ebd (patch) | |
tree | d03559bac7a8c3f1d260cead2ed77791c03d37a5 /src/network/core | |
parent | 4b349c0f90c3f7b6a39171cec41cd98dcd0d88b7 (diff) | |
download | openttd-bfd79e59dc34314a089a0024af56d04d84456ebd.tar.xz |
Codechange: Replace SmallVector::Clear() with std::vector::clear()
Diffstat (limited to 'src/network/core')
-rw-r--r-- | src/network/core/tcp_listen.h | 2 | ||||
-rw-r--r-- | src/network/core/udp.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/network/core/tcp_listen.h b/src/network/core/tcp_listen.h index 21bcaea3c..b9f987190 100644 --- a/src/network/core/tcp_listen.h +++ b/src/network/core/tcp_listen.h @@ -164,7 +164,7 @@ public: for (SocketList::iterator s = sockets.Begin(); s != sockets.End(); s++) { closesocket(s->second); } - sockets.Clear(); + sockets.clear(); DEBUG(net, 1, "[%s] closed listeners", Tsocket::GetName()); } }; diff --git a/src/network/core/udp.cpp b/src/network/core/udp.cpp index 4a2f77368..83c14d2b0 100644 --- a/src/network/core/udp.cpp +++ b/src/network/core/udp.cpp @@ -62,7 +62,7 @@ void NetworkUDPSocketHandler::Close() for (SocketList::iterator s = this->sockets.Begin(); s != this->sockets.End(); s++) { closesocket(s->second); } - this->sockets.Clear(); + this->sockets.clear(); } NetworkRecvStatus NetworkUDPSocketHandler::CloseConnection(bool error) |