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

Unified Diff: Source/modules/webdatabase/QuotaTracker.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/xml/XMLHttpRequest.cpp ('k') | Source/modules/webdatabase/SQLTransactionCoordinator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webdatabase/QuotaTracker.cpp
diff --git a/Source/modules/webdatabase/QuotaTracker.cpp b/Source/modules/webdatabase/QuotaTracker.cpp
index e6fa44b3b59692a9570c02dd82d8ab796b2dc3f4..2ee2b44153a01c7d8e029a88024e7b5cb93606c9 100644
--- a/Source/modules/webdatabase/QuotaTracker.cpp
+++ b/Source/modules/webdatabase/QuotaTracker.cpp
@@ -70,7 +70,7 @@ void QuotaTracker::updateDatabaseSize(
unsigned long long databaseSize)
{
MutexLocker lockData(m_dataGuard);
- HashMap<String, SizeMap>::iterator it = m_databaseSizes.add(originIdentifier, SizeMap()).iterator;
+ HashMap<String, SizeMap>::ValueType* it = m_databaseSizes.add(originIdentifier, SizeMap()).storedValue;
it->value.set(databaseName, databaseSize);
}
« no previous file with comments | « Source/core/xml/XMLHttpRequest.cpp ('k') | Source/modules/webdatabase/SQLTransactionCoordinator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698