Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Refactor: Turn pointers into references

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
jschultz Posted - Sep 03 2016 : 6:11:31 PM
I find myself often updating old C++ code which used pointers everywhere, and to enforce non-null values I want to turn those pointers into references. It would be great if VAX offered a refactoring option that would turn a pointer variable into a reference variable, e.g. like this:


void foo(Bar *bar) { bar->baz = 0; }

Selecting variable "bar" for this refactoring operation would turn the snippet into

void foo(Bar &bar) { bar.baz = 0; }


I have not updated VAX in a while, so please let me know if this feature is already implemented.
1   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Sep 04 2016 : 12:33:47 PM
We're considering to implement this before long:

case=7003

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