diff options
| author | Pavel Labath <pavel@labath.sk> | 2020-04-02 14:40:59 +0200 |
|---|---|---|
| committer | Pavel Labath <pavel@labath.sk> | 2020-04-02 14:42:25 +0200 |
| commit | 451741a9d778a260ceee608a26b5fdf2d9926982 (patch) | |
| tree | 945c6de2f63d9be79125b8ceeee0fde3eeff5f36 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 13a1504ffb9a9a4f82dc1b60d9e8cbb173c7d030 (diff) | |
[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.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
| -rw-r--r-- | lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp index f59b70ac31d2..ee94a183e0dc 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp +++ b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp @@ -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(); |
