Codechange: Switch DropDownList to directly use std::vector, thus making AutoDeleteSmallVector obsolete.
DropDownListItem are strongly managed using std::unique_ptr to ensure leak-free handling. Appropriate use of move-semantics make intent a lot clearer than parameter comments and allows the compiler to generate copy-free code for most situations.
This commit is contained in:
@@ -19,6 +19,6 @@ struct Window *ShowBuildRailToolbar(RailType railtype);
|
||||
void ReinitGuiAfterToggleElrail(bool disable);
|
||||
bool ResetSignalVariant(int32 = 0);
|
||||
void InitializeRailGUI();
|
||||
DropDownList *GetRailTypeDropDownList(bool for_replacement = false, bool all_option = false);
|
||||
DropDownList GetRailTypeDropDownList(bool for_replacement = false, bool all_option = false);
|
||||
|
||||
#endif /* RAIL_GUI_H */
|
||||
|
Reference in New Issue
Block a user