Bug 330500 - Autocorrect of member operator to pointer version of operator
Summary: Autocorrect of member operator to pointer version of operator
Status: RESOLVED DUPLICATE of bug 318263
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (other bugs)
Version First Reported In: 4.6.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-28 10:00 UTC by Matthijs
Modified: 2014-01-28 10:57 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***