summaryrefslogtreecommitdiff
path: root/src/hotkeys.cpp
diff options
context:
space:
mode:
authorHenry Wilson <m3henry@googlemail.com>2018-09-23 17:36:45 +0100
committerPeterN <peter@fuzzle.org>2019-03-26 20:15:57 +0000
commit81315939b909a95277ffbab51709714779089656 (patch)
tree9ee8bf1dc8e63cc0a44795ae6d23194d03bf6628 /src/hotkeys.cpp
parentf3938fdb838685e76bba78974bb6e90e9afc6e22 (diff)
downloadopenttd-81315939b909a95277ffbab51709714779089656.tar.xz
Codechange: Replaced SmallVector::Find() non-const with std::find()
Diffstat (limited to 'src/hotkeys.cpp')
-rw-r--r--src/hotkeys.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hotkeys.cpp b/src/hotkeys.cpp
index 9411887ea..9f323bc28 100644
--- a/src/hotkeys.cpp
+++ b/src/hotkeys.cpp
@@ -260,7 +260,7 @@ HotkeyList::HotkeyList(const char *ini_group, Hotkey *items, GlobalHotkeyHandler
HotkeyList::~HotkeyList()
{
- _hotkey_lists->Erase(_hotkey_lists->Find(this));
+ _hotkey_lists->erase(std::find(_hotkey_lists->begin(), _hotkey_lists->end(), this));
}
/**