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

Unified Diff: third_party/WebKit/Source/modules/fetch/FetchHeaderList.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/modules/fetch/FetchHeaderList.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/FetchHeaderList.cpp b/third_party/WebKit/Source/modules/fetch/FetchHeaderList.cpp
index eb15911580d08c91df573e4a119d5c77e3855a4f..bda2352890c71f60de82f7fd2b17d6dfec101d24 100644
--- a/third_party/WebKit/Source/modules/fetch/FetchHeaderList.cpp
+++ b/third_party/WebKit/Source/modules/fetch/FetchHeaderList.cpp
@@ -47,7 +47,7 @@ void FetchHeaderList::set(const String& name, const String& value) {
m_headerList[i]->second = value;
for (size_t j = i + 1; j < m_headerList.size();) {
if (m_headerList[j]->first == lowercasedName)
- m_headerList.remove(j);
+ m_headerList.erase(j);
else
++j;
}
@@ -79,7 +79,7 @@ void FetchHeaderList::remove(const String& name) {
const String lowercasedName = name.lower();
for (size_t i = 0; i < m_headerList.size();) {
if (m_headerList[i]->first == lowercasedName)
- m_headerList.remove(i);
+ m_headerList.erase(i);
else
++i;
}
@@ -150,7 +150,7 @@ void FetchHeaderList::sortAndCombine() {
if (m_headerList[index - 1]->first == m_headerList[index]->first) {
m_headerList[index - 1]->second.append(",");
m_headerList[index - 1]->second.append(m_headerList[index]->second);
- m_headerList.remove(index, 1);
+ m_headerList.erase(index, 1);
}
}
}

Powered by Google App Engine
This is Rietveld 408576698