aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Interpreter/CommandObject.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/Interpreter/CommandObject.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/Interpreter/CommandObject.cpp')
-rw-r--r--lldb/source/Interpreter/CommandObject.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/lldb/source/Interpreter/CommandObject.cpp b/lldb/source/Interpreter/CommandObject.cpp
index dfae7be..64a46e3 100644
--- a/lldb/source/Interpreter/CommandObject.cpp
+++ b/lldb/source/Interpreter/CommandObject.cpp
@@ -836,8 +836,8 @@ void CommandObject::FormatLongHelpText(Stream &output_strm,
}
std::string whitespace_prefix = line.substr(0, result);
std::string remainder = line.substr(result);
- interpreter.OutputFormattedHelpText(output_strm, whitespace_prefix.c_str(),
- remainder.c_str());
+ interpreter.OutputFormattedHelpText(output_strm, whitespace_prefix,
+ remainder);
}
}
@@ -852,8 +852,7 @@ void CommandObject::GenerateHelpText(Stream &output_strm) {
if (WantsRawCommandString()) {
std::string help_text(GetHelp());
help_text.append(" Expects 'raw' input (see 'help raw-input'.)");
- interpreter.OutputFormattedHelpText(output_strm, "", "", help_text.c_str(),
- 1);
+ interpreter.OutputFormattedHelpText(output_strm, "", "", help_text, 1);
} else
interpreter.OutputFormattedHelpText(output_strm, "", "", GetHelp(), 1);
output_strm << "\nSyntax: " << GetSyntax() << "\n";