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

Unified Diff: remoting/host/linux/audio_pipe_reader.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/it2me_desktop_environment.cc ('k') | remoting/host/me2me_desktop_environment.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/linux/audio_pipe_reader.cc
diff --git a/remoting/host/linux/audio_pipe_reader.cc b/remoting/host/linux/audio_pipe_reader.cc
index c8bda1bb190a6ce5fec8a9fc0bb9946b2fbd61bd..691e78bb9c71d4f2166bd246e39f1a5bc6c590c2 100644
--- a/remoting/host/linux/audio_pipe_reader.cc
+++ b/remoting/host/linux/audio_pipe_reader.cc
@@ -10,6 +10,8 @@
#include <sys/types.h>
#include <unistd.h>
+#include <utility>
+
#include "base/logging.h"
#include "base/posix/eintr_wrapper.h"
#include "base/stl_util.h"
@@ -116,7 +118,7 @@ void AudioPipeReader::TryOpenPipe() {
file_descriptor_watcher_.StopWatchingFileDescriptor();
timer_.Stop();
- pipe_ = new_pipe.Pass();
+ pipe_ = std::move(new_pipe);
if (pipe_.IsValid()) {
// Get buffer size for the pipe.
« no previous file with comments | « remoting/host/it2me_desktop_environment.cc ('k') | remoting/host/me2me_desktop_environment.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698