aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2020-04-02 14:40:59 +0200
committerPavel Labath <pavel@labath.sk>2020-04-02 14:42:25 +0200
commit451741a9d778a260ceee608a26b5fdf2d9926982 (patch)
tree945c6de2f63d9be79125b8ceeee0fde3eeff5f36 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parent13a1504ffb9a9a4f82dc1b60d9e8cbb173c7d030 (diff)
downloadllvm-451741a9d778a260ceee608a26b5fdf2d9926982.zip
llvm-451741a9d778a260ceee608a26b5fdf2d9926982.tar.gz
llvm-451741a9d778a260ceee608a26b5fdf2d9926982.tar.bz2
[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.cpp2
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 f59b70a..ee94a18 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();