diff options
Diffstat (limited to 'lldb/source/Core/Debugger.cpp')
-rw-r--r-- | lldb/source/Core/Debugger.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp index 806f9151bf2..96461f80446 100644 --- a/lldb/source/Core/Debugger.cpp +++ b/lldb/source/Core/Debugger.cpp @@ -280,7 +280,7 @@ Error Debugger::SetPropertyValue(const ExecutionContext *exe_ctx, std::string str = lldb_utility::ansi::FormatAnsiTerminalCodes( new_prompt, GetUseColor()); if (str.length()) - new_prompt = str.c_str(); + new_prompt = str; GetCommandInterpreter().UpdatePrompt(new_prompt); EventSP prompt_change_event_sp( new Event(CommandInterpreter::eBroadcastBitResetPrompt, @@ -350,7 +350,7 @@ void Debugger::SetPrompt(llvm::StringRef p) { std::string str = lldb_utility::ansi::FormatAnsiTerminalCodes(new_prompt, GetUseColor()); if (str.length()) - new_prompt = str.c_str(); + new_prompt = str; GetCommandInterpreter().UpdatePrompt(new_prompt); } @@ -1429,7 +1429,7 @@ void Debugger::HandleProcessEvent(const EventSP &event_sp) { content_stream.Flush(); // Print it. - output_stream_sp->PutCString(content_stream.GetString().c_str()); + output_stream_sp->PutCString(content_stream.GetString()); } } else { error_stream_sp->Printf("Failed to print structured " |