From 5b517ad4cf48270c5cec5506c2cf9cd486ccbdba Mon Sep 17 00:00:00 2001 From: "Adam C. Emerson" Date: Mon, 10 Apr 2017 13:09:57 -0400 Subject: [PATCH] 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 --- src/rgw/rgw_auth.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_auth.h b/src/rgw/rgw_auth.h index 8dcd2e7b0561..8118ac150d39 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); } -- 2.47.3