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

Unified Diff: remoting/codec/audio_decoder_verbatim.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/codec/audio_decoder_opus.cc ('k') | remoting/codec/audio_encoder_opus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/codec/audio_decoder_verbatim.cc
diff --git a/remoting/codec/audio_decoder_verbatim.cc b/remoting/codec/audio_decoder_verbatim.cc
index a04e2a5737ef3c5510a82f9f30242bda13ed9cb6..6bd115a9df29a46de3a59081b6fddf4f7687962a 100644
--- a/remoting/codec/audio_decoder_verbatim.cc
+++ b/remoting/codec/audio_decoder_verbatim.cc
@@ -9,11 +9,8 @@
namespace remoting {
-AudioDecoderVerbatim::AudioDecoderVerbatim() {
-}
-
-AudioDecoderVerbatim::~AudioDecoderVerbatim() {
-}
+AudioDecoderVerbatim::AudioDecoderVerbatim() {}
+AudioDecoderVerbatim::~AudioDecoderVerbatim() {}
scoped_ptr<AudioPacket> AudioDecoderVerbatim::Decode(
scoped_ptr<AudioPacket> packet) {
@@ -28,7 +25,7 @@ scoped_ptr<AudioPacket> AudioDecoderVerbatim::Decode(
LOG(WARNING) << "Verbatim decoder received an invalid packet.";
return nullptr;
}
- return packet.Pass();
+ return packet;
}
} // namespace remoting
« no previous file with comments | « remoting/codec/audio_decoder_opus.cc ('k') | remoting/codec/audio_encoder_opus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698