From 06dab86467d0d8d757c3170351aa05b3f804b473 Mon Sep 17 00:00:00 2001 From: Martin Haefner Date: Mon, 30 Aug 2021 17:13:36 +0200 Subject: [PATCH] Remove std::move on return values --- include/simppl/detail/error.h | 4 ++-- src/stubbase.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/simppl/detail/error.h b/include/simppl/detail/error.h index f6d2af8..a26e433 100644 --- a/include/simppl/detail/error.h +++ b/include/simppl/detail/error.h @@ -51,7 +51,7 @@ struct ErrorFactory if (exp) encode(iter, *exp); - return std::move(rmsg); + return rmsg; } @@ -84,7 +84,7 @@ struct ErrorFactory message_ptr_t reply(DBusMessage& msg, const Error& e) { message_ptr_t rmsg = e.make_reply_for(msg); - return std::move(rmsg); + return rmsg; } diff --git a/src/stubbase.cpp b/src/stubbase.cpp index b319ddd..69fa8d8 100644 --- a/src/stubbase.cpp +++ b/src/stubbase.cpp @@ -193,7 +193,7 @@ simppl::dbus::CallState StubBase::get_all_properties_handle_response(DBusMessage } } - return std::move(cs); + return cs; }