[lldb] Change Communication::SetConnection to take a unique_ptr
The function takes ownership of the object. This makes that explicit, and avoids unowned pointers floating around.
This commit is contained in:
@@ -953,7 +953,7 @@ bool ScriptInterpreterPythonImpl::ExecuteOneLine(
|
||||
true));
|
||||
#endif
|
||||
if (conn_up->IsConnected()) {
|
||||
output_comm.SetConnection(conn_up.release());
|
||||
output_comm.SetConnection(std::move(conn_up));
|
||||
output_comm.SetReadThreadBytesReceivedCallback(
|
||||
ReadThreadBytesReceived, &result->GetOutputStream());
|
||||
output_comm.StartReadThread();
|
||||
|
||||
Reference in New Issue
Block a user