Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Reorder member variables in constructor

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
robiwan Posted - Apr 10 2015 : 06:56:08 AM
The order of the variables in constructors should be the same order as they appear in the C++ header file. It would be nice to have a function to reorder them automatically with VA.
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Apr 11 2015 : 8:36:46 PM
Are you talking about the order of the initializer list on a class constructor? Like this:

class CSortMemberInitialization
{
private:
    int m_nWidth;
    int m_nHeight;
    std::string m_strName;

public:
    CSortMemberInitialization();
};

CSortMemberInitialization::CSortMemberInitialization() : m_strName("test"), m_nHeight(0), m_nWidth(0)
{
}

if so then we are considering a feature to make sure the initializer list and then class members are in the same order:

case=8368

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