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

Unified Diff: remoting/host/desktop_shape_tracker_win.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/desktop_shape_tracker_win.cc
diff --git a/remoting/host/desktop_shape_tracker_win.cc b/remoting/host/desktop_shape_tracker_win.cc
index 60a2d2c71bcd70b0f9a5b58cc389af0dfe8c461b..ccde174d2ed5a146b854d6f9956cfbd7bc52fa4c 100644
--- a/remoting/host/desktop_shape_tracker_win.cc
+++ b/remoting/host/desktop_shape_tracker_win.cc
@@ -65,7 +65,7 @@ void DesktopShapeTrackerWin::RefreshDesktopShape() {
// If the shape has changed, refresh |desktop_shape_|.
if (!EqualRgn(shape_data->desktop_region.get(), old_desktop_region_.get())) {
- old_desktop_region_ = shape_data->desktop_region.Pass();
+ old_desktop_region_ = std::move(shape_data->desktop_region);
// Determine the size of output buffer required to receive the region.
DWORD bytes_size = GetRegionData(old_desktop_region_.get(), 0, nullptr);

Powered by Google App Engine
This is Rietveld 408576698