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

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: 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
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..89f3c258052ff7c543ef16942809dedd1cc10eb2 100644
--- a/remoting/host/ipc_audio_capturer.cc
+++ b/remoting/host/ipc_audio_capturer.cc
@@ -28,7 +28,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

Powered by Google App Engine
This is Rietveld 408576698