Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 319279

Summary: Generate getters and setters handles class types incorrectly
Product: [Tools] CDT Reporter: Tomasz Wesolowski <kosashi>
Component: cdt-refactoringAssignee: Sergey Prigogin <eclipse.sprigogin>
Status: RESOLVED FIXED QA Contact: Sergey Prigogin <eclipse.sprigogin>
Severity: normal    
Priority: P3 CC: eclipse.sprigogin, yevshif
Version: 7.0   
Target Milestone: 8.1.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Tomasz Wesolowski CLA 2010-07-08 10:58:26 EDT
If the field is a class object (or reference to a class object):

+ In getter, a class type should be returned by reference, not by value.
+ In setter, the parameter to set should be passed by const reference
Comment 1 CDT Genie CLA 2011-12-06 02:23:02 EST
*** cdt git genie on behalf of Sergey Prigogin ***

    Bug 319279. Passing parameter and return value by reference.

[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=253ba9ddefbf660d5fb0676a99d0b270673674f4
Comment 2 Sergey Prigogin CLA 2011-12-06 02:30:27 EST
Fixed in master.