Changeset 86153 in webkit


Ignore:
Timestamp:
May 10, 2011 8:25:02 AM (13 years ago)
Author:
alexis.menard@openbossa.org
Message:

2011-05-10 Alexis Menard <alexis.menard@openbossa.org>

Reviewed by Antonio Gomes.

Warning fix on PluginPackage.cpp.
https://bugs.webkit.org/show_bug.cgi?id=60371

Warning fix on conversion from time_t to unsigned on Linux with GCC 4.6.0.
Let's use a struct rather than an array so we can pass everything to StringHasher.

  • plugins/PluginPackage.cpp: (WebCore::PluginPackage::hash):
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r86152 r86153  
     12011-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
    1142011-05-10  Andreas Kling  <andreas.kling@nokia.com>
    215
  • trunk/Source/WebCore/plugins/PluginPackage.cpp

    r81548 r86153  
    344344unsigned PluginPackage::hash() const
    345345{
    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);
    352355}
    353356
Note: See TracChangeset for help on using the changeset viewer.