diff options
author | Henry Wilson <m3henry@googlemail.com> | 2018-09-23 17:36:45 +0100 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2019-03-26 20:15:57 +0000 |
commit | 81315939b909a95277ffbab51709714779089656 (patch) | |
tree | 9ee8bf1dc8e63cc0a44795ae6d23194d03bf6628 /src/network | |
parent | f3938fdb838685e76bba78974bb6e90e9afc6e22 (diff) | |
download | openttd-81315939b909a95277ffbab51709714779089656.tar.xz |
Codechange: Replaced SmallVector::Find() non-const with std::find()
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/network_content.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_content.h b/src/network/network_content.h index 0d30de857..a81cc6a6d 100644 --- a/src/network/network_content.h +++ b/src/network/network_content.h @@ -142,7 +142,7 @@ public: /** Add a callback to this class */ void AddCallback(ContentCallback *cb) { this->callbacks.Include(cb); } /** Remove a callback */ - void RemoveCallback(ContentCallback *cb) { this->callbacks.Erase(this->callbacks.Find(cb)); } + void RemoveCallback(ContentCallback *cb) { this->callbacks.erase(std::find(this->callbacks.begin(), this->callbacks.end(), cb)); } }; extern ClientNetworkContentSocketHandler _network_content_client; |