| Summary: | Automatically generated getter methods are not declared 'const' | ||
|---|---|---|---|
| Product: | [Applications] kdevelop | Reporter: | Andreas Feldner <andreas> |
| Component: | Language Support: CPP (old) | Assignee: | KDevelop-Devel List <kdevelop-devel> |
| Status: | RESOLVED FIXED | ||
| Severity: | wishlist | ||
| Priority: | NOR | ||
| Version First Reported In: | 2.1.1 | ||
| Target Milestone: | --- | ||
| Platform: | openSUSE | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
Solver by Roberto Raggi |
(*** 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)