Bug 140718

Summary: [FreeType] Calling the assignment operator from inside a copy constructor on FontPlatformDataFreeType
Product: WebKit Reporter: byeongha.cho
Component: TextAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bugs-noreply, mcatanzaro
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Description byeongha.cho 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.
Comment 1 Michael Catanzaro 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.
Comment 2 byeongha.cho 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