Index: webrtc/base/buffer.h |
diff --git a/webrtc/base/buffer.h b/webrtc/base/buffer.h |
index 076fa08f26e10c3b750b01b9f07314391dd5054a..bf2e9f3c933d031a4a28546333f70a8162e35d82 100644 |
--- a/webrtc/base/buffer.h |
+++ b/webrtc/base/buffer.h |
@@ -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 |