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

Unified Diff: remoting/host/chromeos/skia_bitmap_desktop_frame.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/skia_bitmap_desktop_frame.cc
diff --git a/remoting/host/chromeos/skia_bitmap_desktop_frame.cc b/remoting/host/chromeos/skia_bitmap_desktop_frame.cc
index 9be841f2d092822b43b44b4bcc97f632badfe5a6..a153d219572253e4fdf1cd340166496b2979c2cd 100644
--- a/remoting/host/chromeos/skia_bitmap_desktop_frame.cc
+++ b/remoting/host/chromeos/skia_bitmap_desktop_frame.cc
@@ -21,7 +21,7 @@ SkiaBitmapDesktopFrame* SkiaBitmapDesktopFrame::Create(
const size_t row_bytes = bitmap->rowBytes();
SkiaBitmapDesktopFrame* result = new SkiaBitmapDesktopFrame(
- size, row_bytes, bitmap_data, bitmap.Pass());
+ size, row_bytes, bitmap_data, std::move(bitmap));
return result;
}
@@ -30,7 +30,7 @@ SkiaBitmapDesktopFrame::SkiaBitmapDesktopFrame(webrtc::DesktopSize size,
int stride,
uint8_t* data,
scoped_ptr<SkBitmap> bitmap)
- : DesktopFrame(size, stride, data, nullptr), bitmap_(bitmap.Pass()) {
+ : DesktopFrame(size, stride, data, nullptr), bitmap_(std::move(bitmap)) {
}
SkiaBitmapDesktopFrame::~SkiaBitmapDesktopFrame() {

Powered by Google App Engine
This is Rietveld 408576698