[Webkit-unassigned] [Bug 140718] [FreeType] Calling the assignment operator from inside a copy constructor on FontPlatformDataFreeType

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Nov 12 14:20:57 PST 2016


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

Michael Catanzaro <mcatanzaro at igalia.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mcatanzaro at igalia.com
            Summary|Calling the assignment      |[FreeType] Calling the
                   |operator from inside a copy |assignment operator from
                   |constructor on              |inside a copy constructor
                   |FontPlatformDataFreeType    |on FontPlatformDataFreeType

--- Comment #1 from Michael Catanzaro <mcatanzaro at igalia.com> ---
(In reply to comment #0)
> It isn't a good idiom.

Why not? How would you improve it?

The copy assignment operator is not virtual, so it should be safe.

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


More information about the webkit-unassigned mailing list