[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-bugs
Subject:    [Bug 244774] New: Kdevelop auto-changes "this->someVar" into
From:       <olig9 () gmx ! de>
Date:       2010-07-15 16:54:08
Message-ID: bug-244774-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=244774

           Summary: Kdevelop auto-changes "this->someVar" into
                    "this.someVar"
           Product: kdevelop
           Version: 4.0.0
          Platform: Compiled Sources
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: code completion
        AssignedTo: kdevelop-bugs@kdevelop.org
        ReportedBy: olig9@gmx.de


Created an attachment (id=49181)
 --> (http://bugs.kde.org/attachment.cgi?id=49181)
test case showing the problem

Version:           4.0.0 (using KDE 4.4.4) 
OS:                Linux

In certain cases, when typing "obj1 > this->mObj" Kdev will change the ->
characters automatically to a dot when typing it, so it reads this.mObj . This
is obviously incorrect in normal C++ code.

Looks like this only happens in very special cases. See the test case. I think
it has to do with:
- obj1 being an object (if it's an int the problem doesn't appear)
- the comparison being a greater-than (if it's a <, >= or == the problem
doesn't appear)


Reproducible: Always

Steps to Reproduce:
- open the attached test case file in Kdev 4
- edit the "if" line: delete it and type it again, as: "if (obj1 > this->mObj)"
- observe that the -> is automatically changed to "."


Actual Results:  
The "->" characters are replaced by a "." character

Expected Results:  
The "->" characters should stay as I typed them.

Workaround is to type "(*this).someVar" instead :-)

This happens with self-compiled Kdev 4.0.60, on RHEL 5.1.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic