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

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: 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/shaped_desktop_capturer.cc
diff --git a/remoting/host/shaped_desktop_capturer.cc b/remoting/host/shaped_desktop_capturer.cc
index 8cfbcbcf7bc87baf8b387a6989567b6606ddd29f..7813ce6998757fa3196414a167f73f627259e3b6 100644
--- a/remoting/host/shaped_desktop_capturer.cc
+++ b/remoting/host/shaped_desktop_capturer.cc
@@ -13,8 +13,8 @@ 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()),
+ : desktop_capturer_(std::move(desktop_capturer)),
+ shape_tracker_(std::move(shape_tracker)),
callback_(nullptr) {
}

Powered by Google App Engine
This is Rietveld 408576698