Codechange: Optionally allow passing state to GUIList sorter function.
GUIList sorter functions can currently only use global state, which makes per-window-instance sorting difficult.
This commit is contained in:

committed by
Peter Nelson

parent
4d9f335f36
commit
dcf730f1f6
@@ -602,7 +602,7 @@ static void ShowSavePresetWindow(const char *initial_text);
|
||||
* Window for showing NewGRF files
|
||||
*/
|
||||
struct NewGRFWindow : public Window, NewGRFScanCallback {
|
||||
typedef GUIList<const GRFConfig *, StringFilter &> GUIGRFConfigList;
|
||||
typedef GUIList<const GRFConfig *, std::nullptr_t, StringFilter &> GUIGRFConfigList;
|
||||
|
||||
static const uint EDITBOX_MAX_SIZE = 50;
|
||||
|
||||
|
Reference in New Issue
Block a user