forked from mirror/OpenTTD
Codechange: Remove shrink_to_fit for more lists.
A comment about "will actually do nothing" is out of date as that is not the case with std::vector. These lists are always short lived (either within a command handler or in a window) so don't shrink_to_fit.
This commit is contained in:
@@ -374,8 +374,6 @@ static void FiosGetFileList(SaveLoadOperation fop, bool show_dirs, FiosGetTypeAn
|
||||
|
||||
/* Show drives */
|
||||
FiosGetDrives(file_list);
|
||||
|
||||
file_list.shrink_to_fit();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user