Commit 0fa94136 authored by Alexander Shaposhnikov's avatar Alexander Shaposhnikov Committed by Facebook Github Bot

Remove superfluous std::move

Summary: Cleanup: remove superfluous std::move for return values.

Reviewed By: yfeldblum

Differential Revision: D4856421

fbshipit-source-id: bf2cb66f3b43eb8f3b183e22b0acd31e0a0c0958
parent 03ce292a
......@@ -106,11 +106,9 @@ class atomic_shared_ptr {
SharedPtr load(std::memory_order order = std::memory_order_seq_cst) const
noexcept {
auto local = takeOwnedBase(order);
auto res = get_shared_ptr(local, false);
return std::move(res);
return get_shared_ptr(local, false);
}
/* implicit */ operator SharedPtr() const {
return load();
}
......@@ -332,7 +330,7 @@ class atomic_shared_ptr {
p.get());
res = *aliasedp;
}
return std::move(res);
return res;
}
/* Get a reference to the pointer, either from the local batch or
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment