Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Refactoring doesn't rename all member references

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
xMRi Posted - Jun 04 2014 : 05:54:52 AM
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
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Jun 04 2014 : 11:45:05 PM
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.

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