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

Unified Diff: remoting/host/ipc_audio_capturer.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/input_injector_x11.cc ('k') | remoting/host/ipc_desktop_environment.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/ipc_audio_capturer.cc
diff --git a/remoting/host/ipc_audio_capturer.cc b/remoting/host/ipc_audio_capturer.cc
index 5bc568d913e77c624ff35456e97b22cc80e8721b..3b6b95d4b84d1f83a8da2d7202ac5bcc171935ef 100644
--- a/remoting/host/ipc_audio_capturer.cc
+++ b/remoting/host/ipc_audio_capturer.cc
@@ -4,6 +4,8 @@
#include "remoting/host/ipc_audio_capturer.h"
+#include <utility>
+
#include "remoting/host/desktop_session_proxy.h"
#include "remoting/proto/audio.pb.h"
@@ -28,7 +30,7 @@ bool IpcAudioCapturer::Start(const PacketCapturedCallback& callback) {
}
void IpcAudioCapturer::OnAudioPacket(scoped_ptr<AudioPacket> packet) {
- callback_.Run(packet.Pass());
+ callback_.Run(std::move(packet));
}
} // namespace remoting
« no previous file with comments | « remoting/host/input_injector_x11.cc ('k') | remoting/host/ipc_desktop_environment.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698