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
 Technical Support
 1530: Renaming member function parameters
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jul 23 2006 :  3:06:49 PM  Show Profile  Reply with Quote
If a tries to rename a parameter in function declaration, the parser will not rename in the definition or vice versa.

For example:

Header:
class cTest {
void Function1(int apple, int banana);
};

Cpp:
void cTest::Function1(int apple, int banana)
{
apple++;
banana++;
}

So if I rename apple or banana the outcome will be that the word only in the header or only in the cpp will be renamed.

jpizzi
Tomato Guru

USA
642 Posts

Posted - Jul 23 2006 :  6:05:50 PM  Show Profile  Reply with Quote
I sure thought this used to work. But, I found it is a known issue. It is listed as an enhancement request.

case=1140

I have added a reference to this thread to the case.

Of course you realize that the parameter names in the two are not required to match.

Joe Pizzi

Edited by - jpizzi on Jul 23 2006 6:07:27 PM
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jul 23 2006 :  10:04:27 PM  Show Profile  Reply with Quote
OK, thanks!
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Jul 24 2006 :  6:44:52 PM  Show Profile  Reply with Quote
for now use Change Signature instead, this renames inside the function, and it also updates the definition.

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