forked from mirror/OpenTTD
(svn r26086) -Codechange: use AutoDeleteSmallVector instead std::list for dropdowns
This commit is contained in:
@@ -246,12 +246,12 @@ protected:
|
||||
item = str_item;
|
||||
}
|
||||
|
||||
list->push_back(item);
|
||||
*list->Append() = item;
|
||||
page_num++;
|
||||
}
|
||||
|
||||
/* Check if list is empty. */
|
||||
if (list->size() == 0) {
|
||||
if (list->Length() == 0) {
|
||||
delete list;
|
||||
list = NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user