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

Unified Diff: third_party/WebKit/Source/platform/heap/HeapTest.cpp

Issue 2725063003: Migrate WTF::LinkedHashSet/ListHashSet/HashTable::remove() to ::erase() (Closed)
Patch Set: rebase 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/heap/HeapTest.cpp
diff --git a/third_party/WebKit/Source/platform/heap/HeapTest.cpp b/third_party/WebKit/Source/platform/heap/HeapTest.cpp
index 26070fa6b7026c4aff5c1e8fcf1f858bbead74e8..2481a8c95abe3a96f938029f65d5bb62bd4c590f 100644
--- a/third_party/WebKit/Source/platform/heap/HeapTest.cpp
+++ b/third_party/WebKit/Source/platform/heap/HeapTest.cpp
@@ -3064,7 +3064,7 @@ void orderedSetHelper(bool strong) {
EXPECT_EQ(set2->end(), iX);
if (strong)
- set1->remove(keepNumbersAlive[0]);
+ set1->erase(keepNumbersAlive[0]);
keepNumbersAlive[0] = nullptr;
@@ -3497,7 +3497,7 @@ TEST(HeapTest, HeapWeakCollectionTypes) {
} else if (collectionNumber == weakOrderedSetIndex && firstAlive) {
ASSERT_TRUE(weakOrderedSet->contains(keepNumbersAlive[i]));
if (deleteAfterwards)
- weakOrderedSet->remove(keepNumbersAlive[i]);
+ weakOrderedSet->erase(keepNumbersAlive[i]);
else
count++;
}
« no previous file with comments | « third_party/WebKit/Source/platform/fonts/FontDataCache.cpp ('k') | third_party/WebKit/Source/platform/heap/ThreadState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698