Replace manual casting to rvalue reference with calls to std::move

Review URL: https://codereview.webrtc.org/1570473002

Cr-Commit-Position: refs/heads/master@{#11163}
This commit is contained in:
kwiberg
2016-01-07 05:52:04 -08:00
committed by Commit bot
parent a46a4c92d0
commit cea7c2f783
5 changed files with 20 additions and 23 deletions

View File

@ -172,7 +172,7 @@ class Buffer {
// b.Pass() does the same thing as std::move(b).
Buffer&& Pass() {
assert(IsConsistent());
return static_cast<Buffer&&>(*this);
return std::move(*this);
}
// Resets the buffer to zero size and capacity. Works even if the buffer has