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

Unified Diff: Source/platform/network/ResourceResponse.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/platform/network/ResourceRequest.cpp ('k') | Source/platform/network/WebSocketHandshakeRequest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/network/ResourceResponse.cpp
diff --git a/Source/platform/network/ResourceResponse.cpp b/Source/platform/network/ResourceResponse.cpp
index 0b156692cd0ce2b3244fb4bbcb55f31821115fe9..ea22e78ea2851a5411cf9de280c0cf29376ea646 100644
--- a/Source/platform/network/ResourceResponse.cpp
+++ b/Source/platform/network/ResourceResponse.cpp
@@ -311,7 +311,7 @@ void ResourceResponse::addHTTPHeaderField(const AtomicString& name, const Atomic
HTTPHeaderMap::AddResult result = m_httpHeaderFields.add(name, value);
if (!result.isNewEntry)
- result.iterator->value = result.iterator->value + ", " + value;
+ result.storedValue->value = result.storedValue->value + ", " + value;
}
void ResourceResponse::clearHTTPHeaderField(const AtomicString& name)
« no previous file with comments | « Source/platform/network/ResourceRequest.cpp ('k') | Source/platform/network/WebSocketHandshakeRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698