T O P I C R E V I E W |
Stefan Maton |
Posted - Sep 22 2006 : 05:46:37 AM Hi,
I tried the rename refactoring tool and stumbled upon this:
I have a base class which has virtual functions. I have a lot of derived classes overloading those virtual functions. When I try to rename the function declaration of the base class, ideally VA should show up all function declarations within the derived classes so that it can change it accordingly. Unfortunately, it doesn't do that.
Is this an intentional behaviour or do I miss something?
Best regards, Stefan |
4 L A T E S T R E P L I E S (Newest First) |
support |
Posted - Oct 06 2006 : 7:57:48 PM Case 2668 is fixed in 1538.
Rename in a base class changes overriding names in derived classes. Rename of a overriding member in a derived class does not rename within a base class.
|
jpizzi |
Posted - Sep 23 2006 : 01:42:23 AM I think this is working the way we intended. But, I can see the merit in what you want it to do. I have added a case to add the feature.
case=2668 |
rodneys |
Posted - Sep 22 2006 : 06:04:14 AM Tested with Visual Studio 2005 and
VA_X.dll file version 10.3.1535.0 built 2006.09.15 VAOpsWin.dll version 1.3.3.6 VATE.dll version 1.0.5.8
|
rodneys |
Posted - Sep 22 2006 : 06:00:21 AM Same problem here! I try to rename the method paint() in a base class: class BaseClass { public: virtual void paint() ; }
In the derived class, Visual Assist only renames the call to BaseClass::paint() but not the overwritten method:
class DerivedClass { public: virtual void paint() // <- NOT renamed { BaseClass::paint() ; // <- renamed } }
Really bad because the compiler does not complain. |