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

Unified Diff: remoting/host/chromeos/mouse_cursor_monitor_aura.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/chromeos/mouse_cursor_monitor_aura.cc
diff --git a/remoting/host/chromeos/mouse_cursor_monitor_aura.cc b/remoting/host/chromeos/mouse_cursor_monitor_aura.cc
index f1120aa2b5ed663c912fd2f7d6fe916e13925669..071e45b8925715a9605bcfbde8f2321022d25c24 100644
--- a/remoting/host/chromeos/mouse_cursor_monitor_aura.cc
+++ b/remoting/host/chromeos/mouse_cursor_monitor_aura.cc
@@ -95,7 +95,7 @@ void MouseCursorMonitorAura::NotifyCursorChanged(const ui::Cursor& cursor) {
}
scoped_ptr<webrtc::DesktopFrame> image(
- SkiaBitmapDesktopFrame::Create(cursor_bitmap.Pass()));
+ SkiaBitmapDesktopFrame::Create(std::move(cursor_bitmap)));
scoped_ptr<webrtc::MouseCursor> cursor_shape(new webrtc::MouseCursor(
image.release(),
webrtc::DesktopVector(cursor_hotspot.x(), cursor_hotspot.y())));

Powered by Google App Engine
This is Rietveld 408576698