Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Class Rename Incorrect For Method Parameter Type

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
sjaffe Posted - Jul 02 2007 : 12:32:01 PM
VAX 1557 (eVC 4.0)

It is common in C++ to create prototypes for unused copy constructors, operator= methods, etc (some refer to this as the "Orthodox Canonical Form"). An example:

class Foo
{
Foo(const Foo&); // not used, no implementation
};

If I invoke VAX to rename the class to Foobar I get:

class Foobar
{
Foobar(const Foo&); // not used, no implementation
};

It does not rename the parameter type. If I add a dummy parameter:

class Foo
{
Foo(const Foo& dummy); // not used, no implementation
};

Then I get:

class Foobar
{
Foobar(const Foobar& dummy); // not used, no implementation
};

Which is the expected behavior.



1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Jul 02 2007 : 3:22:46 PM
I am seeing the same effect here. Thank you for the clear description.

case=3027

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