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

Unified Diff: ui/ozone/demo/ozone_demo.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/demo/ozone_demo.cc
diff --git a/ui/ozone/demo/ozone_demo.cc b/ui/ozone/demo/ozone_demo.cc
index 77800169a4920eafe1cbfb57b9fb6d4528c672c1..739e8ca7720b8c63d94d720cadaa0fb189acb4ae 100644
--- a/ui/ozone/demo/ozone_demo.cc
+++ b/ui/ozone/demo/ozone_demo.cc
@@ -311,7 +311,7 @@ void WindowManager::OnDisplayConfigured(const gfx::Rect& bounds, bool success) {
scoped_ptr<DemoWindow> window(
new DemoWindow(this, &renderer_factory_, bounds));
window->Start();
- windows_.push_back(window.Pass());
+ windows_.push_back(std::move(window));
} else {
LOG(ERROR) << "Failed to configure display at " << bounds.ToString();
}
« no previous file with comments | « no previous file | ui/ozone/platform/caca/caca_window_manager.cc » ('j') | ui/ozone/platform/caca/caca_window_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698