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

Unified Diff: third_party/WebKit/Source/core/inspector/ThreadDebugger.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/inspector/ThreadDebugger.cpp
diff --git a/third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp b/third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp
index b65752191a291f7bad9e05fc013dba060e57c494..46daae731a5f39be0dba4ab33a94770f39e2a94a 100644
--- a/third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp
+++ b/third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp
@@ -459,9 +459,9 @@ void ThreadDebugger::cancelTimer(void* data) {
for (size_t index = 0; index < m_timerData.size(); ++index) {
if (m_timerData[index] == data) {
m_timers[index]->stop();
- m_timerCallbacks.remove(index);
- m_timers.remove(index);
- m_timerData.remove(index);
+ m_timerCallbacks.erase(index);
+ m_timers.erase(index);
+ m_timerData.erase(index);
return;
}
}

Powered by Google App Engine
This is Rietveld 408576698