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

Unified Diff: third_party/WebKit/Source/core/animation/SVGInterpolationTypesMap.cpp

Issue 2671933002: Migrate WTF::HashMap::add() to ::insert() (Closed)
Patch Set: rebase, add TODOs 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/core/animation/SVGInterpolationTypesMap.cpp
diff --git a/third_party/WebKit/Source/core/animation/SVGInterpolationTypesMap.cpp b/third_party/WebKit/Source/core/animation/SVGInterpolationTypesMap.cpp
index 0e1ab9020004eb369d73e49eaf1a219422983c36..daeb1c9e01afd099e10557c69fb8a9412f1a3176 100644
--- a/third_party/WebKit/Source/core/animation/SVGInterpolationTypesMap.cpp
+++ b/third_party/WebKit/Source/core/animation/SVGInterpolationTypesMap.cpp
@@ -159,7 +159,8 @@ const InterpolationTypes& SVGInterpolationTypesMap::get(
applicableTypes->push_back(
WTF::makeUnique<SVGValueInterpolationType>(attribute));
- auto addResult = applicableTypesMap.add(property, std::move(applicableTypes));
+ auto addResult =
+ applicableTypesMap.insert(property, std::move(applicableTypes));
return *addResult.storedValue->value.get();
}

Powered by Google App Engine
This is Rietveld 408576698