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

Unified Diff: third_party/WebKit/Source/core/clipboard/DataObject.cpp

Issue 2776203002: Migrate WTF::Vector::remove() to ::erase() (Closed)
Patch Set: rebase, repatch VectorTest Created 3 years, 9 months 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: third_party/WebKit/Source/core/clipboard/DataObject.cpp
diff --git a/third_party/WebKit/Source/core/clipboard/DataObject.cpp b/third_party/WebKit/Source/core/clipboard/DataObject.cpp
index 11b7d9d9a5142f7b4736059026f2b03be6f5fe68..b83bf702e2f036a735526936c7fdc38c8bc0098b 100644
--- a/third_party/WebKit/Source/core/clipboard/DataObject.cpp
+++ b/third_party/WebKit/Source/core/clipboard/DataObject.cpp
@@ -87,7 +87,7 @@ DataObjectItem* DataObject::item(unsigned long index) {
void DataObject::deleteItem(unsigned long index) {
if (index >= length())
return;
- m_itemList.remove(index);
+ m_itemList.erase(index);
}
void DataObject::clearAll() {
@@ -125,7 +125,7 @@ void DataObject::clearData(const String& type) {
if (m_itemList[i]->kind() == DataObjectItem::StringKind &&
m_itemList[i]->type() == type) {
// Per the spec, type must be unique among all items of kind 'string'.
- m_itemList.remove(i);
+ m_itemList.erase(i);
return;
}
}

Powered by Google App Engine
This is Rietveld 408576698