aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-uiout.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/python/py-uiout.h')
-rw-r--r--gdb/python/py-uiout.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/python/py-uiout.h b/gdb/python/py-uiout.h
index d5a50db..9c9617e 100644
--- a/gdb/python/py-uiout.h
+++ b/gdb/python/py-uiout.h
@@ -46,14 +46,14 @@ public:
/* Return the Python object that was created. If a Python error
occurred during the processing, set the Python error and return
nullptr. */
- PyObject *result ()
+ gdbpy_ref<> result ()
{
if (m_error.has_value ())
{
m_error->restore ();
return nullptr;
}
- return current ().obj.release ();
+ return std::move (current ().obj);
}
protected: