[lldb/Utility] Replace ProcessInstanceInfoList with std::vector. (NFCI)

Replace ProcessInstanceInfoList with std::vector<ProcessInstanceInfo>
and update the call sites.
This commit is contained in:
Jonas Devlieghere
2020-03-12 14:10:25 -07:00
parent 078776a679
commit 638b06cf29
19 changed files with 43 additions and 81 deletions

View File

@@ -348,11 +348,11 @@ public:
match_info.SetNameMatchType(NameMatch::StartsWith);
}
platform_sp->FindProcesses(match_info, process_infos);
const size_t num_matches = process_infos.GetSize();
const size_t num_matches = process_infos.size();
if (num_matches == 0)
return;
for (size_t i = 0; i < num_matches; ++i) {
request.AddCompletion(process_infos.GetProcessNameAtIndex(i));
request.AddCompletion(process_infos[i].GetNameAsStringRef());
}
}