Author: Jonas Devlieghere Date: 2020-06-15T20:48:55-07:00 New Revision: 8d2acfc40e3bbfa1e58da21870c61bddc7c9523f
URL: https://github.com/llvm/llvm-project/commit/8d2acfc40e3bbfa1e58da21870c61bddc7c9523f DIFF: https://github.com/llvm/llvm-project/commit/8d2acfc40e3bbfa1e58da21870c61bddc7c9523f.diff LOG: [lldb/Interpreter] Use std::make_shared<StreamString> (NFC) Added: Modified: lldb/include/lldb/Interpreter/CommandReturnObject.h Removed: ################################################################################ diff --git a/lldb/include/lldb/Interpreter/CommandReturnObject.h b/lldb/include/lldb/Interpreter/CommandReturnObject.h index 6a3ec83a765f..a7c2eea57663 100644 --- a/lldb/include/lldb/Interpreter/CommandReturnObject.h +++ b/lldb/include/lldb/Interpreter/CommandReturnObject.h @@ -46,7 +46,7 @@ class CommandReturnObject { // Make sure we at least have our normal string stream output stream lldb::StreamSP stream_sp(m_out_stream.GetStreamAtIndex(eStreamStringIndex)); if (!stream_sp) { - stream_sp.reset(new StreamString()); + stream_sp = std::make_shared<StreamString>(); m_out_stream.SetStreamAtIndex(eStreamStringIndex, stream_sp); } return m_out_stream; @@ -56,7 +56,7 @@ class CommandReturnObject { // Make sure we at least have our normal string stream output stream lldb::StreamSP stream_sp(m_err_stream.GetStreamAtIndex(eStreamStringIndex)); if (!stream_sp) { - stream_sp.reset(new StreamString()); + stream_sp = std::make_shared<StreamString>(); m_err_stream.SetStreamAtIndex(eStreamStringIndex, stream_sp); } return m_err_stream; _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits