Use ctor-initializer rather than assignment for non-POD class members
This commit is contained in:
@@ -177,9 +177,9 @@ void wxGridCellDateRenderer::SetParameters(const wxString& params)
|
||||
|
||||
wxGridCellDateTimeRenderer::wxGridCellDateTimeRenderer(const wxString& outformat, const wxString& informat)
|
||||
: wxGridCellDateRenderer(outformat)
|
||||
, m_iformat(informat)
|
||||
, m_dateDef(wxDefaultDateTime)
|
||||
{
|
||||
m_iformat = informat;
|
||||
m_dateDef = wxDefaultDateTime;
|
||||
}
|
||||
|
||||
wxGridCellRenderer *wxGridCellDateTimeRenderer::Clone() const
|
||||
|
||||
Reference in New Issue
Block a user