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

Unified Diff: remoting/host/shaped_desktop_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/setup/me2me_native_messaging_host_unittest.cc ('k') | remoting/host/signaling_connector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/shaped_desktop_capturer.cc
diff --git a/remoting/host/shaped_desktop_capturer.cc b/remoting/host/shaped_desktop_capturer.cc
index 8cfbcbcf7bc87baf8b387a6989567b6606ddd29f..5976c0c2066a9460012cf94af29b8a03be3b24d8 100644
--- a/remoting/host/shaped_desktop_capturer.cc
+++ b/remoting/host/shaped_desktop_capturer.cc
@@ -4,6 +4,8 @@
#include "remoting/host/shaped_desktop_capturer.h"
+#include <utility>
+
#include "base/logging.h"
#include "remoting/host/desktop_shape_tracker.h"
#include "third_party/webrtc/modules/desktop_capture/desktop_frame.h"
@@ -13,10 +15,9 @@ namespace remoting {
ShapedDesktopCapturer::ShapedDesktopCapturer(
scoped_ptr<webrtc::DesktopCapturer> desktop_capturer,
scoped_ptr<DesktopShapeTracker> shape_tracker)
- : desktop_capturer_(desktop_capturer.Pass()),
- shape_tracker_(shape_tracker.Pass()),
- callback_(nullptr) {
-}
+ : desktop_capturer_(std::move(desktop_capturer)),
+ shape_tracker_(std::move(shape_tracker)),
+ callback_(nullptr) {}
ShapedDesktopCapturer::~ShapedDesktopCapturer() {}
« no previous file with comments | « remoting/host/setup/me2me_native_messaging_host_unittest.cc ('k') | remoting/host/signaling_connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698