aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectProcess.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2020-03-12 14:10:25 -0700
committerJonas Devlieghere <jonas@devlieghere.com>2020-03-12 14:10:25 -0700
commit638b06cf298bc622c3ffd93dc4715c6f806de5b5 (patch)
tree7eb79468d602a6ac7d48e4958df1a4a09b7f6cbf /lldb/source/Commands/CommandObjectProcess.cpp
parent078776a679b94c1fc970febe3c72f0b337af9a97 (diff)
downloadllvm-638b06cf298bc622c3ffd93dc4715c6f806de5b5.zip
llvm-638b06cf298bc622c3ffd93dc4715c6f806de5b5.tar.gz
llvm-638b06cf298bc622c3ffd93dc4715c6f806de5b5.tar.bz2
[lldb/Utility] Replace ProcessInstanceInfoList with std::vector. (NFCI)
Replace ProcessInstanceInfoList with std::vector<ProcessInstanceInfo> and update the call sites.
Diffstat (limited to 'lldb/source/Commands/CommandObjectProcess.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectProcess.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectProcess.cpp b/lldb/source/Commands/CommandObjectProcess.cpp
index 20bbf95..043765a 100644
--- a/lldb/source/Commands/CommandObjectProcess.cpp
+++ b/lldb/source/Commands/CommandObjectProcess.cpp
@@ -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());
}
}