Skip to content

Commit

Permalink
Remove std::move on return values
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Haefner committed Aug 30, 2021
1 parent afcd7c3 commit 06dab86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/simppl/detail/error.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ struct ErrorFactory
if (exp)
encode(iter, *exp);

return std::move(rmsg);
return rmsg;
}


Expand Down Expand Up @@ -84,7 +84,7 @@ struct ErrorFactory<Error>
message_ptr_t reply(DBusMessage& msg, const Error& e)
{
message_ptr_t rmsg = e.make_reply_for(msg);
return std::move(rmsg);
return rmsg;
}


Expand Down
2 changes: 1 addition & 1 deletion src/stubbase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ simppl::dbus::CallState StubBase::get_all_properties_handle_response(DBusMessage
}
}

return std::move(cs);
return cs;
}


Expand Down

0 comments on commit 06dab86

Please sign in to comment.