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

Unified Diff: ui/base/models/list_model.h

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/base/l10n/formatter.cc ('k') | ui/base/resource/data_pack.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/models/list_model.h
diff --git a/ui/base/models/list_model.h b/ui/base/models/list_model.h
index 6ed660fe4ec9d2ccf9853f454a7decb8fccad786..30ccc6c3955565eac2601dc07fa977593a21c1d4 100644
--- a/ui/base/models/list_model.h
+++ b/ui/base/models/list_model.h
@@ -5,6 +5,8 @@
#ifndef UI_BASE_MODELS_LIST_MODEL_H_
#define UI_BASE_MODELS_LIST_MODEL_H_
+#include <utility>
+
#include "base/basictypes.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
@@ -60,7 +62,7 @@ class ListModel {
// Removes and deletes all items from the model.
void DeleteAll() {
- ScopedVector<ItemType> to_be_deleted(items_.Pass());
+ ScopedVector<ItemType> to_be_deleted(std::move(items_));
NotifyItemsRemoved(0, to_be_deleted.size());
}
« no previous file with comments | « ui/base/l10n/formatter.cc ('k') | ui/base/resource/data_pack.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698