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

Unified Diff: third_party/WebKit/Source/platform/text/TextBreakIteratorICU.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/platform/text/TextBreakIteratorICU.cpp
diff --git a/third_party/WebKit/Source/platform/text/TextBreakIteratorICU.cpp b/third_party/WebKit/Source/platform/text/TextBreakIteratorICU.cpp
index 48d49a96e791dc4a905cea2c196d4e1ff1d71d84..a5d3e02124bb6d197e6537d63b7c286e5db9284c 100644
--- a/third_party/WebKit/Source/platform/text/TextBreakIteratorICU.cpp
+++ b/third_party/WebKit/Source/platform/text/TextBreakIteratorICU.cpp
@@ -56,7 +56,7 @@ class LineBreakIteratorPool final {
for (size_t i = 0; i < m_pool.size(); ++i) {
if (m_pool[i].first == locale) {
iterator = m_pool[i].second;
- m_pool.remove(i);
+ m_pool.erase(i);
break;
}
}
@@ -93,7 +93,7 @@ class LineBreakIteratorPool final {
if (m_pool.size() == capacity) {
delete (m_pool[0].second);
- m_pool.remove(0);
+ m_pool.erase(0);
}
m_pool.push_back(Entry(m_vendedIterators.take(iterator), iterator));

Powered by Google App Engine
This is Rietveld 408576698