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

Unified Diff: remoting/host/audio_capturer_linux.cc

Issue 1549493004: Use std::move() instead of .Pass() in remoting/host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_not_pass
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 | « no previous file | remoting/host/audio_capturer_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/audio_capturer_linux.cc
diff --git a/remoting/host/audio_capturer_linux.cc b/remoting/host/audio_capturer_linux.cc
index 8980a8dbe4b5b6160d5476569b978664130ba17c..25861f1ddb882a542103384900eebb8cf412e0b9 100644
--- a/remoting/host/audio_capturer_linux.cc
+++ b/remoting/host/audio_capturer_linux.cc
@@ -64,7 +64,7 @@ void AudioCapturerLinux::OnDataRead(
packet->set_sampling_rate(AudioPipeReader::kSamplingRate);
packet->set_bytes_per_sample(AudioPipeReader::kBytesPerSample);
packet->set_channels(AudioPipeReader::kChannels);
- callback_.Run(packet.Pass());
+ callback_.Run(std::move(packet));
dcheng 2015/12/22 17:48:20 Don't forget to #include <utility> where appropria
Sergey Ulanov 2015/12/22 18:11:03 scoped_ptr.h includes <utility> already, so I don'
}
bool AudioCapturer::IsSupported() {
« no previous file with comments | « no previous file | remoting/host/audio_capturer_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698