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

Unified Diff: third_party/WebKit/Source/platform/testing/ArenaTestHelpers.h

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/testing/ArenaTestHelpers.h
diff --git a/third_party/WebKit/Source/platform/testing/ArenaTestHelpers.h b/third_party/WebKit/Source/platform/testing/ArenaTestHelpers.h
index 0682f9c45942c42b639cffa348cbb3d543236ffe..d1797a5709ecfae45a6c55d5ac254f9634048687 100644
--- a/third_party/WebKit/Source/platform/testing/ArenaTestHelpers.h
+++ b/third_party/WebKit/Source/platform/testing/ArenaTestHelpers.h
@@ -52,7 +52,7 @@ class TrackedAllocator final : public PODArena::FastMallocAllocator {
void free(void* ptr) override {
size_t slot = m_allocatedRegions.find(ptr);
ASSERT_NE(slot, kNotFound);
- m_allocatedRegions.remove(slot);
+ m_allocatedRegions.erase(slot);
PODArena::FastMallocAllocator::free(ptr);
}

Powered by Google App Engine
This is Rietveld 408576698