[Webkit-unassigned] [Bug 176120] New: Add "Identified" base class to replace a whole bunch of custom identifier generators

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 30 13:13:38 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=176120

            Bug ID: 176120
           Summary: Add "Identified" base class to replace a whole bunch
                    of custom identifier generators
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Template Framework
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: beidson at apple.com

Add "Identified" base class to replace a whole bunch of custom identifier generators

A common pattern in WebCore and WebKit is:
uint64_t identifier() const { return m_identifier; }
...
Along with a static function/generator to increment the next identifier for the next instance of the class.

We repeat this code, a lot. And that's silly.

Let's do it as a template base class instead.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170830/d5b09496/attachment.html>


More information about the webkit-unassigned mailing list