Use ctor-initializer rather than assignment for non-POD class members
This commit is contained in:
@@ -25,13 +25,13 @@ public:
|
||||
int micro = 0,
|
||||
const wxString& description = wxString(),
|
||||
const wxString& copyright = wxString())
|
||||
: m_name(name)
|
||||
, m_description(description)
|
||||
, m_copyright(copyright)
|
||||
{
|
||||
m_name = name;
|
||||
m_major = major;
|
||||
m_minor = minor;
|
||||
m_micro = micro;
|
||||
m_description = description;
|
||||
m_copyright = copyright;
|
||||
}
|
||||
|
||||
// Default copy ctor, assignment operator and dtor are ok.
|
||||
|
Reference in New Issue
Block a user