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

Unified Diff: Source/modules/webdatabase/QuotaTracker.cpp

Issue 152883002: (Concept patch) Simplify WTF::HashTable::add() return value for size and performance (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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: Source/modules/webdatabase/QuotaTracker.cpp
diff --git a/Source/modules/webdatabase/QuotaTracker.cpp b/Source/modules/webdatabase/QuotaTracker.cpp
index e6fa44b3b59692a9570c02dd82d8ab796b2dc3f4..35190d63ed459fdecdd8bd49a69d02292cb11e39 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()).iterator;
it->value.set(databaseName, databaseSize);
}

Powered by Google App Engine
This is Rietveld 408576698