Author Topic: B5: Quick refactor rename misses argument  (Read 1309 times)

jc44

  • Senior Community Member
  • Posts: 245
  • Hero Points: 17
B5: Quick refactor rename misses argument
« on: September 23, 2014, 11:29:24 am »
If I place the cursor on the first "a" in the code fragment below and right-click/quick refactoring/rename and try to change "a" to "b"

void f(int * a)
{
    *a = 1;
}

then I get

void f(int * a)
{
    *b = 1;
}

I would have expected both "a"s to change to "b"s.

Many thanks

John Cox



Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2961
  • Hero Points: 440
Re: B5: Quick refactor rename misses argument
« Reply #1 on: September 23, 2014, 03:54:13 pm »
That is definitely a bug, I'll take a look at it.

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2961
  • Hero Points: 440
Re: B5: Quick refactor rename misses argument
« Reply #2 on: September 23, 2014, 04:31:07 pm »
Fixed.  I love it when someone reports a bug with a small consise example that helps me track down a problem immediately.  Very good catch, as this bug was slightly larger in scope than refactoring.