diff options
author | glx <glx@openttd.org> | 2019-04-11 22:17:30 +0200 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2019-04-13 12:49:18 +0100 |
commit | b52561fd381e2c8230730e852406b85210993a98 (patch) | |
tree | 8419fbfe87c06c7427eccbaee0384e96a85bb909 /src/engine_gui.h | |
parent | 2db88953e7e0e521b4514f356038eeb36b299dff (diff) | |
download | openttd-b52561fd381e2c8230730e852406b85210993a98.tar.xz |
Codechange: use std::sort() in EngList_Sort[Partial]()
Diffstat (limited to 'src/engine_gui.h')
-rw-r--r-- | src/engine_gui.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine_gui.h b/src/engine_gui.h index fc0b7ad7d..e95cc13e4 100644 --- a/src/engine_gui.h +++ b/src/engine_gui.h @@ -19,7 +19,7 @@ typedef GUIList<EngineID, CargoID> GUIEngineList; -typedef int CDECL EngList_SortTypeFunction(const EngineID*, const EngineID*); ///< argument type for #EngList_Sort. +typedef bool EngList_SortTypeFunction(const EngineID&, const EngineID&); ///< argument type for #EngList_Sort. void EngList_Sort(GUIEngineList *el, EngList_SortTypeFunction compare); void EngList_SortPartial(GUIEngineList *el, EngList_SortTypeFunction compare, uint begin, uint num_items); |