From 8b925b85762f2f7d41b21835852a599b90c97314 Mon Sep 17 00:00:00 2001 From: arvidn Date: Mon, 22 Apr 2019 15:44:11 +0200 Subject: [PATCH] fix move pessimisation in python binding --- bindings/python/src/entry.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/python/src/entry.cpp b/bindings/python/src/entry.cpp index e97baf0d9..9ffdfab97 100644 --- a/bindings/python/src/entry.cpp +++ b/bindings/python/src/entry.cpp @@ -20,7 +20,7 @@ struct entry_to_python result.append(*i); } - return result; + return std::move(result); } static object convert(entry::dictionary_type const& d) @@ -30,7 +30,7 @@ struct entry_to_python for (entry::dictionary_type::const_iterator i(d.begin()), e(d.end()); i != e; ++i) result[bytes(i->first)] = i->second; - return result; + return std::move(result); } static object convert0(entry const& e)