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: Turn pointers into references
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jschultz
Junior Member

24 Posts

Posted - Sep 03 2016 :  6:11:31 PM  Show Profile  Reply with Quote
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.

Edited by - jschultz on Sep 03 2016 6:12:16 PM

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Sep 04 2016 :  12:33:47 PM  Show Profile  Reply with Quote
We're considering to implement this before long:

case=7003
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