Bug 105388

Summary: auto-generated accessor methods do not contain 'ClassName::' in method definition
Product: [Applications] kdevelop Reporter: Ernestas <ernestas.vaiciukevicius>
Component: Language Support: CPP (old)Assignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: fix for non-inline C++ getter/setter generation

Description Ernestas 2005-05-10 07:25:27 UTC
Version:           3.2.0 (using KDE KDE 3.4.0)
Installed from:    Debian testing/unstable Packages
Compiler:          gcc 3.3 
OS:                Linux

Auto-generated accessor methods do not contain 'ClassName::' in method definition (.cpp file).

How to reproduce:
select an attribute from class view, from context menu choose 'Generate get/set methods', uncheck 'inline' checkboxes and press ok.
Comment 1 Alberto González 2005-06-24 01:01:41 UTC
Kdevelop in Ubuntu Hoary has the bug too: the generated code is

type accessor() {
   return val;
}

and should be

type ClassName::accessor() {
   return val;
}
Comment 2 Ernestas Vaiciukevičius 2006-08-15 22:17:01 UTC
Created attachment 17383 [details]
fix for non-inline C++ getter/setter generation

I think It fixes getter/setter generation (at least for me)..
Comment 3 Christian Schneider 2006-08-29 14:41:48 UTC
The same problem with SVN revision 578441 in branch svn://anonsvn.kde.org/home/kde/branches/kdevelop/3.4
Comment 4 Christian Schneider 2006-08-29 14:59:37 UTC
The patch works fine for me too, thank you!
Comment 5 Jens Dagerbo 2006-09-06 22:26:08 UTC
Confirmed. Patch works. Committed revision 581603. Thanks!