Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Refactor help

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
foxmuldr Posted - Sep 12 2015 : 2:45:26 PM
Suppose I have this:

// forward declaration
int function(int x, int y = 2);


...and in my code some places I have this:

function(1);
function(2, 5);
function(3);
function(4);
function(5, 11);


...would it be possible to allow me to refactor the forward declaration into this? :

// forward declaration
int function(int x, int y);


...and have it automatically change the code to this? :

function(1, 2);
function(2, 5);
function(3, 2);
function(4, 2);
function(5, 11);


...so it inserts the parameters which were defined in the header?

Best regards,
Rick C. Hodgin
2   L A T E S T    R E P L I E S    (Newest First)
foxmuldr Posted - Sep 14 2015 : 11:39:16 AM
Excellent. Thank you. I didn't know what to call it. I wound up doing this over 300 times manually this weekend. In the future... :-)

Best regards,
Rick C. Hodgin
accord Posted - Sep 13 2015 : 6:49:46 PM
Yes, absolutely! Just run "Change Signature" refactoring command, remove the "= 2" and press OK.


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