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
 VAX 1524: refactoring: ctor initializers
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Uniwares
Tomato Guru

Portugal
2321 Posts

Posted - Jun 21 2006 :  5:28:10 PM  Show Profile  Reply with Quote
ctor initializers are wrongly (well, in this context) detected as functions and the refactor menu offers "Change Signature", "Add similar", etc...

sample:

class test
{
  public:
    test(int var, long vartoo) : m_refactorme(var), m_refactormetoo(vartoo) {} 
private:
  int m_refactorme;
  long m_refactormetoo;
};

Use the refactor menu items on the inidicated member vars in the ctor.

jpizzi
Tomato Guru

USA
642 Posts

Posted - Jun 22 2006 :  01:27:22 AM  Show Profile  Reply with Quote
I was about to enter a case for this, but then I tried it.

The result of actually selecting the action and doing it works and makes sense. "Change Signature" renames the attribute, and "Add Similar" adds an attribute.

Not quite expected, but appropriate (and, hence, a "feature" )

Joe Pizzi
Go to Top of Page

Uniwares
Tomato Guru

Portugal
2321 Posts

Posted - Jun 22 2006 :  08:00:23 AM  Show Profile  Reply with Quote
The "Change signature" doesnt work for me (but that might be related to the bug) and "Add Similar" really works, besides of adding the code in the wrong location in the file. Nice.
Go to Top of Page

jpizzi
Tomato Guru

USA
642 Posts

Posted - Jun 23 2006 :  11:45:00 PM  Show Profile  Reply with Quote
Which bug?

As I said, I tried it and it worked correctly (as far as I tested).

Joe Pizzi
Go to Top of Page

Uniwares
Tomato Guru

Portugal
2321 Posts

Posted - Jun 24 2006 :  08:00:23 AM  Show Profile  Reply with Quote
Talking about my problem with the "change signature" in general, which sometimes just doesnt work at all. [link]See: http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=4803[/link]
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