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

Unified Diff: third_party/WebKit/Source/core/html/TimeRanges.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/html/TimeRanges.cpp
diff --git a/third_party/WebKit/Source/core/html/TimeRanges.cpp b/third_party/WebKit/Source/core/html/TimeRanges.cpp
index f53d9ba9a9fd4bfd2a66674198fa2de7cd9a3392..4c9e161ce7aebb852421967ef6498d7f69542eac 100644
--- a/third_party/WebKit/Source/core/html/TimeRanges.cpp
+++ b/third_party/WebKit/Source/core/html/TimeRanges.cpp
@@ -144,7 +144,7 @@ void TimeRanges::add(double start, double end) {
// We need to merge the addedRange and that range.
addedRange = addedRange.unionWithOverlappingOrContiguousRange(
m_ranges[overlappingArcIndex]);
- m_ranges.remove(overlappingArcIndex);
+ m_ranges.erase(overlappingArcIndex);
overlappingArcIndex--;
} else {
// Check the case for which there is no more to do

Powered by Google App Engine
This is Rietveld 408576698