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

Unified Diff: ui/ozone/platform/drm/gpu/drm_device.cc

Issue 1528373002: Replace Pass() with std::move in ui/ozone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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: ui/ozone/platform/drm/gpu/drm_device.cc
diff --git a/ui/ozone/platform/drm/gpu/drm_device.cc b/ui/ozone/platform/drm/gpu/drm_device.cc
index 9a16a95e2ef0eea17096fbfbd38ae8ea70586605..bc528672d554cc3d8ac6a2fa296ef18b39833639 100644
--- a/ui/ozone/platform/drm/gpu/drm_device.cc
+++ b/ui/ozone/platform/drm/gpu/drm_device.cc
@@ -215,7 +215,7 @@ DrmDevice::DrmDevice(const base::FilePath& device_path,
base::File file,
bool is_primary_device)
: device_path_(device_path),
- file_(file.Pass()),
+ file_(std::move(file)),
page_flip_manager_(new PageFlipManager()),
is_primary_device_(is_primary_device) {}
@@ -370,7 +370,7 @@ ScopedDrmPropertyPtr DrmDevice::GetProperty(drmModeConnector* connector,
continue;
if (strcmp(property->name, name) == 0)
- return property.Pass();
+ return property;
}
return ScopedDrmPropertyPtr();

Powered by Google App Engine
This is Rietveld 408576698