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

Unified Diff: Source/core/inspector/PageRuntimeAgent.cpp

Issue 256743005: Add removeAll method to sets and maps and use them (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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: Source/core/inspector/PageRuntimeAgent.cpp
diff --git a/Source/core/inspector/PageRuntimeAgent.cpp b/Source/core/inspector/PageRuntimeAgent.cpp
index f0613cf0708005b32530b4a65c8904a241ea0a2a..5dfa79cafdb71e0c504308eab7381bd969973a02 100644
--- a/Source/core/inspector/PageRuntimeAgent.cpp
+++ b/Source/core/inspector/PageRuntimeAgent.cpp
@@ -151,8 +151,7 @@ void PageRuntimeAgent::frameWindowDiscarded(DOMWindow* window)
m_frontend->executionContextDestroyed(it->value);
}
}
- for (size_t i = 0; i < scriptStatesToRemove.size(); i++)
- m_scriptStateToId.remove(scriptStatesToRemove[i]);
+ m_scriptStateToId.removeAll(scriptStatesToRemove);
}
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698