mirror of
https://github.com/intel/llvm.git
synced 2026-01-21 04:14:03 +08:00
[lldb/Utility] Replace ProcessInstanceInfoList with std::vector. (NFCI)
Replace ProcessInstanceInfoList with std::vector<ProcessInstanceInfo> and update the call sites.
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user