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

Unified Diff: remoting/host/audio_capturer_win.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 | « remoting/host/audio_capturer_linux.cc ('k') | remoting/host/audio_pump.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/audio_capturer_win.cc
diff --git a/remoting/host/audio_capturer_win.cc b/remoting/host/audio_capturer_win.cc
index 325a11d5df389c927bd9d8fa56a5eb075db9c5cc..8c901137945dd58a475a9faca8dfcf36b92ed237 100644
--- a/remoting/host/audio_capturer_win.cc
+++ b/remoting/host/audio_capturer_win.cc
@@ -4,14 +4,15 @@
#include "remoting/host/audio_capturer_win.h"
-#include <windows.h>
#include <avrt.h>
#include <mmreg.h>
#include <mmsystem.h>
-
#include <stdint.h>
#include <stdlib.h>
+#include <windows.h>
+
#include <algorithm>
+#include <utility>
#include "base/logging.h"
@@ -236,7 +237,7 @@ void AudioCapturerWin::DoCapture() {
packet->set_bytes_per_sample(AudioPacket::BYTES_PER_SAMPLE_2);
packet->set_channels(AudioPacket::CHANNELS_STEREO);
- callback_.Run(packet.Pass());
+ callback_.Run(std::move(packet));
}
hr = audio_capture_client_->ReleaseBuffer(frames);
« no previous file with comments | « remoting/host/audio_capturer_linux.cc ('k') | remoting/host/audio_pump.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698