[Core/Debugger/FileLoaders/FileSystems/MIPS] Using reserve if possible

This commit is contained in:
Herman Semenov committed 2023-12-15 13:59:19 +03:00
1 parent 773bbbd648
commit b871e76d05
14 files changed
+20 -3

No files matched your search

+1
View File
@@ -651,6 +651,7 @@ std::vector<PSPFileInfo> ISOFileSystem::GetDirListing(const std::string &path, b
const std::string dot(".");
const std::string dotdot("..");
myVector.reserve(entry->children.size() - 2);
for (size_t i = 0; i < entry->children.size(); i++) {
TreeEntry *e = entry->children[i];