Use ctor-initializer rather than assignment for non-POD class members
This commit is contained in:
@@ -43,8 +43,8 @@ class wxGtkCollatableString
|
||||
{
|
||||
public:
|
||||
wxGtkCollatableString( const wxString &label, gchar *key )
|
||||
: m_label(label)
|
||||
{
|
||||
m_label = label;
|
||||
m_key = key;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user