Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 VAX 1524: refactoring: ctor initializers

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
Uniwares Posted - Jun 21 2006 : 5:28:10 PM
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.
4   L A T E S T    R E P L I E S    (Newest First)
Uniwares Posted - Jun 24 2006 : 08:00:23 AM
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]
jpizzi Posted - Jun 23 2006 : 11:45:00 PM
Which bug?

As I said, I tried it and it worked correctly (as far as I tested).
Uniwares Posted - Jun 22 2006 : 08:00:23 AM
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.
jpizzi Posted - Jun 22 2006 : 01:27:22 AM
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" )

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