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
 Refactoring doesn't rename all member references
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

xMRi
Tomato Guru

Germany
315 Posts

Posted - Jun 04 2014 :  05:54:52 AM  Show Profile  Reply with Quote
I have the following class:


struct SAGComData
{
public:
	SAGComData()
		: m_pVec(NULL)
	{
	}
	bool operator==(const SAGComData &ref) const
	{			
		return m_pVec==ref.m_pVec && m_spParent==ref.m_spParent;
	}

	HRESULT Init()
	{
	}

	HRESULT IsValid()
	{
		return m_spParent==NULL ? E_UNEXPECTED : S_OK;
	}

	CComPtr<IDispatch>   m_spParent;
	std::vector<Data>    *m_pVec;
};


Now I try to rename the member m_pVec.
The refactoring doesn't rename ref.m_pVec.

Checked with latest build 2036

Martin Richter [rMVP] WWJD http://blog.m-ri.de
"A well-written program is its own heaven; a poorly written
program is its own hell!" The Tao of Programming

feline
Whole Tomato Software

United Kingdom
18751 Posts

Posted - Jun 04 2014 :  11:45:05 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description:

case=82738

This seems a very simple thing to confuse VA. It turns out it is the parameter name "ref" that is the trigger. Change the parameter name to something else and this should fix the problem. Interestingly it looks like you can use VA Rename for this.

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