NEW 140718
[FreeType] Calling the assignment operator from inside a copy constructor on FontPlatformDataFreeType
https://bugs.webkit.org/show_bug.cgi?id=140718
Summary [FreeType] Calling the assignment operator from inside a copy constructor on ...
byeongha.cho
Reported 2015-01-20 22:50:51 PST
Assignment operator is called on copy constructor for FontPlatformData. It isn't a good idiom. So we need to refactor it.
Attachments
Michael Catanzaro
Comment 1 2016-11-12 14:20:57 PST
(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.
byeongha.cho
Comment 2 2016-11-13 18:03:10 PST
Calling the assignment operator from inside a copy constructor isn't a good idiom because the former only applies to a fully initialized object and the latter initializes a new object. Please refer https://bugs.webkit.org/show_bug.cgi?id=136327
Note You need to log in before you can comment on or make changes to this bug.