Index: webrtc/base/buffer.cc |
diff --git a/webrtc/base/buffer.cc b/webrtc/base/buffer.cc |
index 90e687bbb6cd4a29db72f7d1d92238a9bdcc1d66..62855f1620dfeac0c9f797c96492cbf7a99404f1 100644 |
--- a/webrtc/base/buffer.cc |
+++ b/webrtc/base/buffer.cc |
@@ -11,6 +11,7 @@ |
#include "webrtc/base/buffer.h" |
#include <cassert> |
+#include <utility> |
namespace rtc { |
@@ -22,7 +23,9 @@ Buffer::Buffer(const Buffer& buf) : Buffer(buf.data(), buf.size()) { |
} |
Buffer::Buffer(Buffer&& buf) |
- : size_(buf.size()), capacity_(buf.capacity()), data_(buf.data_.Pass()) { |
+ : size_(buf.size()), |
+ capacity_(buf.capacity()), |
+ data_(std::move(buf.data_)) { |
assert(IsConsistent()); |
buf.OnMovedFrom(); |
} |