Bug 330500

Summary: Autocorrect of member operator to pointer version of operator
Product: [Applications] kdevelop Reporter: Matthijs <mtijink.bugs>
Component: Language Support: CPP (old)Assignee: kdevelop-bugs-null
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version First Reported In: 4.6.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Matthijs 2014-01-28 10:00:40 UTC
When you want a pointer to a member variable or to the result of a method, I type '&object.member', but KDevelop autocorrects this to '&object->member', which is incorrect because of the operator order.

Reproducible: Always

Steps to Reproduce:
1. Example:
struct foo {
     int bar;
};
int main() {
     foo f;
     &f
}
2. Type '.'  after f ('&f' -> '&f.')
3. The dot changes into '->'



If I remember correctly, this did not happen with KDevelop 4.5.
Additionally, if you type fast enough after the dot and type (for example) the member name, it does not autocorrect at all (but that provides no opportunity for autocompletion either)
Comment 1 Milian Wolff 2014-01-28 10:57:35 UTC

*** This bug has been marked as a duplicate of bug 318263 ***