Bug 99798

Summary: Clean up RegExpKey
Product: WebKit Reporter: Anders Carlsson <andersca>
Component: New BugsAssignee: Anders Carlsson <andersca>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch darin: review+

Anders Carlsson
Reported 2012-10-18 19:46:02 PDT
Clean up RegExpKey
Attachments
Patch (2.90 KB, patch)
2012-10-18 19:50 PDT, Anders Carlsson
darin: review+
Anders Carlsson
Comment 1 2012-10-18 19:50:58 PDT
Darin Adler
Comment 2 2012-10-18 20:57:05 PDT
Comment on attachment 169538 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=169538&action=review > Source/JavaScriptCore/ChangeLog:10 > + RegExpHash doesn't need to be a class template specialization when the class template is specialized > + for JSC::RegExpKey only. Make it a nested class of RegExp instead. Also, make operator== a friend function > + and move it inside the class. Making friend function seems good to me. Moving inside the class does not seem good to me. I find class definitions easier to read when they don’t have long function definitions inside them.
Anders Carlsson
Comment 3 2012-10-19 10:10:05 PDT
Note You need to log in before you can comment on or make changes to this bug.