We apparently have a fancy delateAllValues() helper for HashMap/Sets - I'll use that instead
* WebCore.xcodeproj/project.pbxproj:
* loader/icon/IconDatabase.cpp:
(WebCore::IconDatabase::removeAllIcons):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16119
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-08-30 Brady Eidson <beidson@apple.com>
+
+ Reviewed by Darin's rubberstamp
+
+ We apparently have a fancy delateAllValues() helper for HashMap/Sets - I'll use that instead
+
+ * WebCore.xcodeproj/project.pbxproj:
+ * loader/icon/IconDatabase.cpp:
+ (WebCore::IconDatabase::removeAllIcons):
+
2006-08-29 waylonis <waylonis@google.com>
Reviewed, tweaked by ggaren.
m_pageURLToRetainCount.clear();
m_iconURLToRetainCount.clear();
- HashMap<String, IconDataCache*>::iterator i = m_iconURLToIconDataCacheMap.begin();
- HashMap<String, IconDataCache*>::iterator end = m_iconURLToIconDataCacheMap.end();
- for (; i != end; ++i)
- delete i->second;
+ deleteAllValues(m_iconURLToIconDataCacheMap);
m_iconURLToIconDataCacheMap.clear();
// Wipe any pre-prepared statements, otherwise resetting the SQLDatabases themselves will fail