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

Unified Diff: ui/views/controls/combobox/combobox.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/button/label_button.cc ('k') | ui/views/controls/image_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/combobox/combobox.cc
diff --git a/ui/views/controls/combobox/combobox.cc b/ui/views/controls/combobox/combobox.cc
index 2074b0ef16c3899e3e2d8f4426a0e15438e5fdd3..c03b85d31d15e242dce1d4605a9e81a27ec1d09b 100644
--- a/ui/views/controls/combobox/combobox.cc
+++ b/ui/views/controls/combobox/combobox.cc
@@ -4,6 +4,8 @@
#include "ui/views/controls/combobox/combobox.h"
+#include <utility>
+
#include "base/logging.h"
#include "ui/accessibility/ax_view_state.h"
#include "ui/base/ime/input_method.h"
@@ -687,7 +689,7 @@ void Combobox::UpdateBorder() {
border->SetInsets(5, 10, 5, 10);
if (invalid_)
border->SetColor(gfx::kGoogleRed700);
- SetBorder(border.Pass());
+ SetBorder(std::move(border));
}
void Combobox::AdjustBoundsForRTLUI(gfx::Rect* rect) const {
« no previous file with comments | « ui/views/controls/button/label_button.cc ('k') | ui/views/controls/image_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698