diff options
| author | Adrian Prantl <aprantl@apple.com> | 2024-09-05 12:44:13 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-05 12:44:13 -0700 |
| commit | b798f4bd50bbf0f5eb46804afad10629797c73aa (patch) | |
| tree | 44c44e14ff6a7c9b9b7f5f81aa1c67f41f8502b0 /lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPythonInterface.h | |
| parent | 53d5ffea6be7216589599b6415c021f8bd13cd37 (diff) | |
[lldb] Make deep copies of Status explicit (NFC) (#107170)
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPythonInterface.h')
| -rw-r--r-- | lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPythonInterface.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPythonInterface.h b/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPythonInterface.h index c1dcdc7df6ce..cb6f6ec39892 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPythonInterface.h +++ b/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPythonInterface.h @@ -309,8 +309,12 @@ protected: return python::PythonBoolean(arg); } - python::PythonObject Transform(Status arg) { - return python::SWIGBridge::ToSWIGWrapper(arg); + python::PythonObject Transform(const Status &arg) { + return python::SWIGBridge::ToSWIGWrapper(arg.Clone()); + } + + python::PythonObject Transform(Status &&arg) { + return python::SWIGBridge::ToSWIGWrapper(std::move(arg)); } python::PythonObject Transform(const StructuredDataImpl &arg) { |
