diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2020-06-12 21:13:20 -0700 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2020-06-12 21:13:21 -0700 |
commit | ff058e7331afb16108a8f888dff671ae0240268f (patch) | |
tree | bb85ad16828b4ad191b2572f4940db06881731b2 /lldb/source/Interpreter/CommandObject.cpp | |
parent | 58e34ede5bf741cfc47b3ebd573ae7dfdf9e9c02 (diff) | |
download | llvm-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.cpp | 7 |
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"; |