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
 Refactoring: Promote Local Variable to Parameter
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

agilenberg
New Member

2 Posts

Posted - May 09 2010 :  2:23:49 PM  Show Profile  Reply with Quote
Hello,

Would it be possible to add the re-factoring Promote Local Variable to Parameter in c++?

Example:

void mymethod()
{
int myvariable;

myvariable = 5;
}

Apply Promote Local Variable to Parameter Re-factoring:

void mymethod(int myvariable)
{
myvariable = 5;
}

Thank you,

Pavel

Edited by - agilenberg on May 09 2010 2:52:10 PM

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - May 10 2010 :  4:23:21 PM  Show Profile  Reply with Quote
I have put in a feature request to see what the developers make of this:

case=43947
Go to Top of Page

agilenberg
New Member

2 Posts

Posted - Feb 12 2011 :  01:58:23 AM  Show Profile  Reply with Quote
Are there any plans to implement this feature?

Thank you,

Pavel
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Feb 14 2011 :  11:34:23 AM  Show Profile  Reply with Quote
This is still on our list of feature requests, and we are considering adding this ability at some point. For now are you aware that you can use Create From Usage to add a parameter to a function?

http://www.wholetomato.com/products/features/createFromUsage.asp

This is not quite the same, but hopefully you will find it helpful.

zen is the art of being at one with the two'ness
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