⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 181709 in webkit


Ignore:
Timestamp:
Mar 18, 2015, 2:06:15 PM (11 years ago)
Author:
andersca@apple.com
Message:

Pass cookies by reference in CookieHash functions
https://bugs.webkit.org/show_bug.cgi?id=142839

Reviewed by Sam Weinig.

  • platform/Cookie.h:

(WebCore::CookieHash::hash):
(WebCore::CookieHash::equal):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r181706 r181709  
     12015-03-18  Anders Carlsson  <andersca@apple.com>
     2
     3        Pass cookies by reference in CookieHash functions
     4        https://bugs.webkit.org/show_bug.cgi?id=142839
     5
     6        Reviewed by Sam Weinig.
     7
     8        * platform/Cookie.h:
     9        (WebCore::CookieHash::hash):
     10        (WebCore::CookieHash::equal):
     11
    1122015-03-18  Tim Horton  <timothy_horton@apple.com>
    213
  • trunk/Source/WebCore/platform/Cookie.h

    r165676 r181709  
    6363
    6464    struct CookieHash {
    65         static unsigned hash(Cookie key)
     65        static unsigned hash(const Cookie& key)
    6666        {
    6767            return StringHash::hash(key.name) + StringHash::hash(key.domain) + StringHash::hash(key.path) + key.secure;
    6868        }
    6969
    70         static bool equal(Cookie a, Cookie b)
     70        static bool equal(const Cookie& a, const Cookie& b)
    7171        {
    7272            return a.name == b.name && a.domain == b.domain && a.path == b.path && a.secure == b.secure;
Note: See TracChangeset for help on using the changeset viewer.