Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 319279 - Generate getters and setters handles class types incorrectly
Summary: Generate getters and setters handles class types incorrectly
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-refactoring (show other bugs)
Version: 7.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 8.1.0   Edit
Assignee: Sergey Prigogin CLA
QA Contact: Sergey Prigogin CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-08 10:58 EDT by Tomasz Wesolowski CLA
Modified: 2012-02-23 11:33 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.