Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Refactor pointer to reference

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
kevinchannon 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 :)
1   L A T E S T    R E P L I E S    (Newest First)
accord 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?

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000