kevinchannon
Starting Member
1 Posts |
Posted - Sep 27 2012 : 1:38:50 PM
|
The variable renaming features of VAX are really useful. If one uses Hungarian notation in variable naming, then this feature is used when changing:
MyClass* pcMyPointer = pSomePointer;
to
MyClass& myRef = something;
However, I'll now be left with lots of nonsense "myRef->MyMethod()" calls that I have to robotically go through and change to "myRef.MyMethod()". It would be really cool to have something a bit smarter, like an option in the VAX refactoring context menu along the lines of "Pointer to reference". I could apply this refactor and the the renaming refactor and everything would be excellent :)
|
|
accord
Whole Tomato Software
United Kingdom
3287 Posts |
Posted - Sep 28 2012 : 1:33:59 PM
|
I may be missing something, but wouldn't replacing "myRef->" to "myRef." in the function help here? I mean, since this is a reference, it's probably been defined in a method, hasn't it? |
|
|