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

Unified Diff: ui/views/controls/textfield/textfield.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/views/controls/table/table_view.cc ('k') | ui/views/controls/webview/webview.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/textfield/textfield.cc
diff --git a/ui/views/controls/textfield/textfield.cc b/ui/views/controls/textfield/textfield.cc
index 4e8ec8713a52c897cb114eb4f56d31964248f64d..84c0fc343b2c0f1efed5d73b31535f7fffb52e09 100644
--- a/ui/views/controls/textfield/textfield.cc
+++ b/ui/views/controls/textfield/textfield.cc
@@ -5,6 +5,7 @@
#include "ui/views/controls/textfield/textfield.h"
#include <string>
+#include <utility>
#include "base/trace_event/trace_event.h"
#include "ui/accessibility/ax_view_state.h"
@@ -563,7 +564,7 @@ void Textfield::ExecuteCommand(int command_id) {
}
void Textfield::SetFocusPainter(scoped_ptr<Painter> focus_painter) {
- focus_painter_ = focus_painter.Pass();
+ focus_painter_ = std::move(focus_painter);
}
bool Textfield::HasTextBeingDragged() {
« no previous file with comments | « ui/views/controls/table/table_view.cc ('k') | ui/views/controls/webview/webview.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698