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
 Rename does not update both .cpp and .h
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jan.antonis
Starting Member

1 Posts

Posted - Oct 25 2011 :  06:11:22 AM  Show Profile  Reply with Quote
If I have a function in my cpp file. e.g.

ErrorType CMyClass::MyFunction( CMyPassedClass& myPassedVariableName )
{
}

and I right click on the "myPassedVariableName" string and choose
Refactor->Rename. Then select a new variable name e.g. "myPassedVariableName2", VisualAssist will correctly rename all usage of the variable in the cpp file, but will not change the variable name in the header file.

I realize the software will compile like this and the functionality of the code will be unaffected, but for clarity I need the variables to have the same name.
Perhaps there is a setting I can change (I have looked but cannot find one).

thanks
JA

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Oct 25 2011 :  11:09:35 AM  Show Profile  Reply with Quote
Currently this is a known limitation of rename that we are looking to fix:

case=1140

In this situation, if you use Change Signature instead, this should update all instances of the parameter name in the implementation.

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