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

Unified Diff: Source/core/html/PublicURLManager.cpp

Issue 138643003: Simpler return value of HashTable::add/HashMap:add and others (Closed)
Patch Set: Daily master update (now with base url?) 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/html/HTMLCollection.cpp ('k') | Source/core/html/forms/CheckedRadioButtons.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/PublicURLManager.cpp
diff --git a/Source/core/html/PublicURLManager.cpp b/Source/core/html/PublicURLManager.cpp
index 09157de9df7ad8f906cb24ffd2b51e96549bdbba..ce41a3f8978e590e9a8263c74fe741d489a0ede3 100644
--- a/Source/core/html/PublicURLManager.cpp
+++ b/Source/core/html/PublicURLManager.cpp
@@ -51,7 +51,7 @@ void PublicURLManager::registerURL(SecurityOrigin* origin, const KURL& url, URLR
if (m_isStopped)
return;
- RegistryURLMap::iterator found = m_registryToURL.add(&registrable->registry(), URLSet()).iterator;
+ RegistryURLMap::ValueType* found = m_registryToURL.add(&registrable->registry(), URLSet()).storedValue;
found->key->registerURL(origin, url, registrable);
found->value.add(url.string());
}
« no previous file with comments | « Source/core/html/HTMLCollection.cpp ('k') | Source/core/html/forms/CheckedRadioButtons.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698