Changeset 181709 in webkit
- Timestamp:
- Mar 18, 2015, 2:06:15 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
platform/Cookie.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r181706 r181709 1 2015-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 1 12 2015-03-18 Tim Horton <timothy_horton@apple.com> 2 13 -
trunk/Source/WebCore/platform/Cookie.h
r165676 r181709 63 63 64 64 struct CookieHash { 65 static unsigned hash( Cookiekey)65 static unsigned hash(const Cookie& key) 66 66 { 67 67 return StringHash::hash(key.name) + StringHash::hash(key.domain) + StringHash::hash(key.path) + key.secure; 68 68 } 69 69 70 static bool equal( Cookie a, Cookieb)70 static bool equal(const Cookie& a, const Cookie& b) 71 71 { 72 72 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.