diff options
author | Raphael Isemann <teemperor@gmail.com> | 2019-08-16 14:27:35 +0000 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2019-08-16 14:27:35 +0000 |
commit | 4c78b7882506957febf4318978d31b5aaae7cced (patch) | |
tree | 57b4c6df88edcf2ba5ae517d0a00a993630c3067 /lldb/source/Commands/CommandObjectMultiword.cpp | |
parent | 213edc34922afa08f8cf070017fcd398b12f15a5 (diff) | |
download | bcm5719-llvm-4c78b7882506957febf4318978d31b5aaae7cced.tar.gz bcm5719-llvm-4c78b7882506957febf4318978d31b5aaae7cced.zip |
[lldb][NFC] Allow for-ranges on StringList
llvm-svn: 369113
Diffstat (limited to 'lldb/source/Commands/CommandObjectMultiword.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectMultiword.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectMultiword.cpp b/lldb/source/Commands/CommandObjectMultiword.cpp index 4011cceb8a2..eeda1fed25c 100644 --- a/lldb/source/Commands/CommandObjectMultiword.cpp +++ b/lldb/source/Commands/CommandObjectMultiword.cpp @@ -136,9 +136,9 @@ bool CommandObjectMultiword::Execute(const char *args_string, if (num_subcmd_matches > 0) { error_msg.append(" Possible completions:"); - for (size_t i = 0; i < matches.GetSize(); i++) { + for (const std::string &match : matches) { error_msg.append("\n\t"); - error_msg.append(matches.GetStringAtIndex(i)); + error_msg.append(match); } } error_msg.append("\n"); |