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

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: include <utility> 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 64a7846a3c56f93ccc0cfeaef946950fec06de56..dea720adad5cef8bb82f44b939f26fb3bb5d5acc 100644
--- a/remoting/host/audio_capturer_linux.cc
+++ b/remoting/host/audio_capturer_linux.cc
@@ -5,6 +5,7 @@
#include "remoting/host/audio_capturer_linux.h"
#include <stdint.h>
+#include <utility>
#include "base/files/file_path.h"
#include "base/lazy_instance.h"
@@ -66,7 +67,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));
}
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