Bug 43169 - Automatically generated getter methods are not declared 'const'
Summary: Automatically generated getter methods are not declared 'const'
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (show other bugs)
Version: 2.1.1
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: KDevelop-Devel List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-28 13:33 UTC by Andreas Feldner
Modified: 2003-05-13 14:18 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Feldner 2002-05-28 13:18:38 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           kdevelop
Version:           2.1.1 (using KDE 2.2.2 )
Severity:          wishlist
Installed from:    SuSE
Compiler:          gcc version 2.95.3 20010315 (SuSE)
OS:                Linux (i686) release 2.4.17
OS/Compiler notes: 

When you add a member variable using the context menu in KDevelop's class browser there's an option to automatically generate the according getter and setter methods. However the declaration of the getter methods are missing the 'const' modifier making it impossible to call getters on const objects. Like:

class gwonz {
  std::string foo;
  const std::strint getFoo() const;
  //                 missing ^^^^^
}

(Submitted via bugs.kde.org)
(Called from KBugReport dialog)
Comment 1 Amilcar do Carmo Lucas 2003-05-13 14:18:48 UTC
Solver by Roberto Raggi