From: Adam C. Emerson Date: Mon, 10 Apr 2017 17:09:57 +0000 (-0400) Subject: rgw: Make AuthResult::get_completer return rvalue reference X-Git-Tag: v12.0.2~94^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5b517ad4cf48270c5cec5506c2cf9cd486ccbdba;p=ceph.git rgw: Make AuthResult::get_completer return rvalue reference Since we are explicitly moving the completer out of the AuthResult and allowing the client to have ownership of it, simply return an rvalue reference rather than moving into a temporary that is itself returned. Signed-off-by: Adam C. Emerson --- diff --git a/src/rgw/rgw_auth.h b/src/rgw/rgw_auth.h index 8dcd2e7b056..8118ac150d3 100644 --- a/src/rgw/rgw_auth.h +++ b/src/rgw/rgw_auth.h @@ -228,7 +228,7 @@ public: return std::move(result_pair.first); } - Completer::cmplptr_t get_completer() { + Completer::cmplptr_t&& get_completer() { return std::move(result_pair.second); }