Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Unified Diff: remoting/codec/audio_decoder_opus.cc

Issue 1545723002: Use std::move() instead of .Pass() in remoting/* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_not_pass_host
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/client/software_video_renderer_unittest.cc ('k') | remoting/codec/audio_decoder_verbatim.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/codec/audio_decoder_opus.cc
diff --git a/remoting/codec/audio_decoder_opus.cc b/remoting/codec/audio_decoder_opus.cc
index 0bcabcc5653d40227038a90c60068c2e5e30630c..8a578712bc59d50e310173cfd6ffaf1ed6a07823 100644
--- a/remoting/codec/audio_decoder_opus.cc
+++ b/remoting/codec/audio_decoder_opus.cc
@@ -74,7 +74,6 @@ bool AudioDecoderOpus::ResetForPacket(AudioPacket* packet) {
return decoder_ != nullptr;
}
-
scoped_ptr<AudioPacket> AudioDecoderOpus::Decode(
scoped_ptr<AudioPacket> packet) {
if (packet->encoding() != AudioPacket::ENCODING_OPUS) {
@@ -133,7 +132,7 @@ scoped_ptr<AudioPacket> AudioDecoderOpus::Decode(
decoded_data->resize(buffer_pos);
- return decoded_packet.Pass();
+ return decoded_packet;
}
} // namespace remoting
« no previous file with comments | « remoting/client/software_video_renderer_unittest.cc ('k') | remoting/codec/audio_decoder_verbatim.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698