From 1dfb1a85e7cbc37bf6fff9bb046c6e8be0c26b8e Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Tue, 12 Nov 2019 14:33:52 +0100 Subject: [lldb] Fix some warnings in the python plugin --- lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h') diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h index 05f280ae698..b6d63373b43 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h +++ b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h @@ -130,7 +130,7 @@ template T Take(PyObject *obj) { assert(!PyErr_Occurred()); T thing(PyRefType::Owned, obj); assert(thing.IsValid()); - return std::move(thing); + return thing; } // Retain a reference you have borrowed, and turn it into @@ -148,7 +148,7 @@ template T Retain(PyObject *obj) { assert(!PyErr_Occurred()); T thing(PyRefType::Borrowed, obj); assert(thing.IsValid()); - return std::move(thing); + return thing; } // This class can be used like a utility function to convert from -- cgit v1.2.3