Changeset 86153 in webkit
- Timestamp:
- May 10, 2011 8:25:02 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r86152 r86153 1 2011-05-10 Alexis Menard <alexis.menard@openbossa.org> 2 3 Reviewed by Antonio Gomes. 4 5 Warning fix on PluginPackage.cpp. 6 https://bugs.webkit.org/show_bug.cgi?id=60371 7 8 Warning fix on conversion from time_t to unsigned on Linux with GCC 4.6.0. 9 Let's use a struct rather than an array so we can pass everything to StringHasher. 10 11 * plugins/PluginPackage.cpp: 12 (WebCore::PluginPackage::hash): 13 1 14 2011-05-10 Andreas Kling <andreas.kling@nokia.com> 2 15 -
trunk/Source/WebCore/plugins/PluginPackage.cpp
r81548 r86153 344 344 unsigned PluginPackage::hash() const 345 345 { 346 unsigned hashCodes[] = { 347 m_path.impl()->hash(), 348 m_lastModified 349 }; 350 351 return StringHasher::hashMemory<sizeof(hashCodes)>(hashCodes); 346 struct HashCodes { 347 unsigned hash; 348 time_t modifiedDate; 349 } hashCodes; 350 351 hashCodes.hash = m_path.impl()->hash(); 352 hashCodes.modifiedDate = m_lastModified; 353 354 return StringHasher::hashMemory<sizeof(hashCodes)>(&hashCodes); 352 355 } 353 356
Note: See TracChangeset
for help on using the changeset viewer.