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

Unified Diff: ui/aura/window.cc

Issue 1539583003: Convert Pass()→std::move() in ui/ (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
« no previous file with comments | « ui/aura/test/env_test_helper.h ('k') | ui/aura/window_event_dispatcher_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window.cc
diff --git a/ui/aura/window.cc b/ui/aura/window.cc
index 2634eba17ef1182b2f87f76d3ac053273926a92f..8f27a6c92fce0665538d9303f06238c4c193aea0 100644
--- a/ui/aura/window.cc
+++ b/ui/aura/window.cc
@@ -5,6 +5,7 @@
#include "ui/aura/window.h"
#include <algorithm>
+#include <utility>
#include "base/bind.h"
#include "base/bind_helpers.h"
@@ -291,9 +292,9 @@ void Window::SetLayoutManager(LayoutManager* layout_manager) {
scoped_ptr<ui::EventTargeter>
Window::SetEventTargeter(scoped_ptr<ui::EventTargeter> targeter) {
- scoped_ptr<ui::EventTargeter> old_targeter = targeter_.Pass();
- targeter_ = targeter.Pass();
- return old_targeter.Pass();
+ scoped_ptr<ui::EventTargeter> old_targeter = std::move(targeter_);
+ targeter_ = std::move(targeter);
+ return old_targeter;
}
void Window::SetBounds(const gfx::Rect& new_bounds) {
« no previous file with comments | « ui/aura/test/env_test_helper.h ('k') | ui/aura/window_event_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698