Use ctor-initializer rather than assignment for non-POD class members
This commit is contained in:
@@ -144,8 +144,8 @@ wxSplashScreenWindow::wxSplashScreenWindow(const wxBitmap& bitmap, wxWindow* par
|
||||
wxWindowID id, const wxPoint& pos,
|
||||
const wxSize& size, long style)
|
||||
: wxWindow(parent, id, pos, size, style)
|
||||
, m_bitmap(bitmap)
|
||||
{
|
||||
m_bitmap = bitmap;
|
||||
|
||||
#if !defined(__WXGTK__) && wxUSE_PALETTE
|
||||
bool hiColour = (wxDisplayDepth() >= 16) ;
|
||||
|
Reference in New Issue
Block a user