Index: webrtc/modules/audio_processing/test/test_utils.cc |
diff --git a/webrtc/modules/audio_processing/test/test_utils.cc b/webrtc/modules/audio_processing/test/test_utils.cc |
index 47bd3144ccbbe87289982254ccc45069d7efea9e..25181a1c4d304c166c9dd8dc8e696e76a5ec313a 100644 |
--- a/webrtc/modules/audio_processing/test/test_utils.cc |
+++ b/webrtc/modules/audio_processing/test/test_utils.cc |
@@ -8,6 +8,8 @@ |
* be found in the AUTHORS file in the root of the source tree. |
*/ |
+#include <utility> |
+ |
#include "webrtc/base/checks.h" |
#include "webrtc/modules/audio_processing/test/test_utils.h" |
@@ -32,7 +34,7 @@ void RawFile::WriteSamples(const float* samples, size_t num_samples) { |
} |
ChannelBufferWavReader::ChannelBufferWavReader(rtc::scoped_ptr<WavReader> file) |
- : file_(file.Pass()) {} |
+ : file_(std::move(file)) {} |
bool ChannelBufferWavReader::Read(ChannelBuffer<float>* buffer) { |
RTC_CHECK_EQ(file_->num_channels(), buffer->num_channels()); |
@@ -49,7 +51,7 @@ bool ChannelBufferWavReader::Read(ChannelBuffer<float>* buffer) { |
} |
ChannelBufferWavWriter::ChannelBufferWavWriter(rtc::scoped_ptr<WavWriter> file) |
- : file_(file.Pass()) {} |
+ : file_(std::move(file)) {} |
void ChannelBufferWavWriter::Write(const ChannelBuffer<float>& buffer) { |
RTC_CHECK_EQ(file_->num_channels(), buffer.num_channels()); |