Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Refactor pointer to reference
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

kevinchannon
Starting Member

1 Posts

Posted - Sep 27 2012 :  1:38:50 PM  Show Profile  Reply with Quote
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  Show Profile  Reply with Quote
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?
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000