aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectMultiword.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2020-06-12 21:13:20 -0700
committerJonas Devlieghere <jonas@devlieghere.com>2020-06-12 21:13:21 -0700
commitff058e7331afb16108a8f888dff671ae0240268f (patch)
treebb85ad16828b4ad191b2572f4940db06881731b2 /lldb/source/Commands/CommandObjectMultiword.cpp
parent58e34ede5bf741cfc47b3ebd573ae7dfdf9e9c02 (diff)
downloadllvm-ff058e7331afb16108a8f888dff671ae0240268f.zip
llvm-ff058e7331afb16108a8f888dff671ae0240268f.tar.gz
llvm-ff058e7331afb16108a8f888dff671ae0240268f.tar.bz2
[lldb] Remove unnecessary c_str() in OutputFormattedHelpText calls (NFC)
Diffstat (limited to 'lldb/source/Commands/CommandObjectMultiword.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectMultiword.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/lldb/source/Commands/CommandObjectMultiword.cpp b/lldb/source/Commands/CommandObjectMultiword.cpp
index ca0e058..9033cfe 100644
--- a/lldb/source/Commands/CommandObjectMultiword.cpp
+++ b/lldb/source/Commands/CommandObjectMultiword.cpp
@@ -167,13 +167,12 @@ void CommandObjectMultiword::GenerateHelpText(Stream &output_stream) {
if (pos->second->WantsRawCommandString()) {
std::string help_text(std::string(pos->second->GetHelp()));
help_text.append(" Expects 'raw' input (see 'help raw-input'.)");
- m_interpreter.OutputFormattedHelpText(output_stream,
- indented_command.c_str(), "--",
- help_text.c_str(), max_len);
+ m_interpreter.OutputFormattedHelpText(output_stream, indented_command,
+ "--", help_text, max_len);
} else
- m_interpreter.OutputFormattedHelpText(output_stream,
- indented_command.c_str(), "--",
- pos->second->GetHelp(), max_len);
+ m_interpreter.OutputFormattedHelpText(output_stream, indented_command,
+ "--", pos->second->GetHelp(),
+ max_len);
}
output_stream.PutCString("\nFor more help on any particular subcommand, type "