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

Unified Diff: Source/core/svg/properties/SVGAttributeToPropertyMap.cpp

Issue 167123002: Simpler return value from HashTable::add()/HashMap::add() and others (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
« no previous file with comments | « Source/core/svg/animation/SMILTimeContainer.cpp ('k') | Source/core/xml/XMLHttpRequest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/properties/SVGAttributeToPropertyMap.cpp
diff --git a/Source/core/svg/properties/SVGAttributeToPropertyMap.cpp b/Source/core/svg/properties/SVGAttributeToPropertyMap.cpp
index cabeb2245d03c5b3070aaa27cec389e3ff7895d9..a483d41418231adda830c6d835c6a69578367189 100644
--- a/Source/core/svg/properties/SVGAttributeToPropertyMap.cpp
+++ b/Source/core/svg/properties/SVGAttributeToPropertyMap.cpp
@@ -118,13 +118,13 @@ SVGAttributeToPropertyMap::PropertiesVector* SVGAttributeToPropertyMap::getOrCre
{
ASSERT(attributeName != anyQName());
AttributeToPropertiesMap::AddResult addResult = m_map.add(attributeName, PassOwnPtr<PropertiesVector>());
- PropertiesVector* vector = addResult.iterator->value.get();
+ PropertiesVector* vector = addResult.storedValue->value.get();
if (addResult.isNewEntry) {
ASSERT(!vector);
- vector = (addResult.iterator->value = adoptPtr(new PropertiesVector)).get();
+ vector = (addResult.storedValue->value = adoptPtr(new PropertiesVector)).get();
}
ASSERT(vector);
- ASSERT(addResult.iterator->value.get() == vector);
+ ASSERT(addResult.storedValue->value.get() == vector);
return vector;
}
« no previous file with comments | « Source/core/svg/animation/SMILTimeContainer.cpp ('k') | Source/core/xml/XMLHttpRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698