| Summary: | Refactoring after renaming class uses wrong class name | ||
|---|---|---|---|
| Product: | [Applications] kdevelop | Reporter: | Rolf Eike Beer <kde> |
| Component: | Language Support: CPP (old) | Assignee: | kdevelop-bugs-null |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | aleixpol, pbandaru |
| Priority: | NOR | ||
| Version First Reported In: | 4.3.1 | ||
| Target Milestone: | --- | ||
| Platform: | openSUSE | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | 5.0.0 | |
| Sentry Crash Report: | |||
| Attachments: |
Renamed the class name for the first time which updated the constructor name
Renamed the class name for the second time which updated the constructor name |
||
Created attachment 98487 [details]
Renamed the class name for the first time which updated the constructor name
Created attachment 98488 [details]
Renamed the class name for the second time which updated the constructor name
I followed all the steps provided above and didnt find any issue.
Confirmed. Assuming this got fixed in the meantime. |
Save this example as a header file: #pragma once class foo { foo() {} }; Right-click on the class name and rename the class (e.g. to Foo). Now right click on the renamed constructor: it is shown as foo::Foo in the menu and if you e.g. select "create separate definition" then it will also be written as such. If you instead just try to rename the class again the constructor will not get renamed again, but will keep the name after the first rename. Reproducible: Always I've tested this on 2 different hosts, one running SC 4.9rc1 on openSUSE 11.4, the other one running SC 4.8.4 on openSUSE 12.1, both using KDevelop 4.3.1.