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

Unified Diff: third_party/WebKit/Source/platform/Length.cpp

Issue 2709033003: Migrate WTF::HashMap::get() to ::at() (Closed)
Patch Set: rebase Created 3 years, 10 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/Length.cpp
diff --git a/third_party/WebKit/Source/platform/Length.cpp b/third_party/WebKit/Source/platform/Length.cpp
index a2296baf62f6d15f08de284a4cf1a09f14232fea..a6d15756a8abbb850b9d56530ebbbb7b55319fb3 100644
--- a/third_party/WebKit/Source/platform/Length.cpp
+++ b/third_party/WebKit/Source/platform/Length.cpp
@@ -59,12 +59,12 @@ class CalculationValueHandleMap {
CalculationValue& get(int index) {
ASSERT(m_map.contains(index));
- return *m_map.get(index);
+ return *m_map.at(index);
}
void decrementRef(int index) {
ASSERT(m_map.contains(index));
- CalculationValue* value = m_map.get(index);
+ CalculationValue* value = m_map.at(index);
if (value->hasOneRef()) {
// Force the CalculationValue destructor early to avoid a potential
// recursive call inside HashMap remove().
« no previous file with comments | « third_party/WebKit/Source/modules/webusb/USB.cpp ('k') | third_party/WebKit/Source/platform/Supplementable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698