Use ctor-initializer rather than assignment for non-POD class members
This commit is contained in:
@@ -253,8 +253,8 @@ class wxHtmlImageMapCell : public wxHtmlCell
|
||||
|
||||
|
||||
wxHtmlImageMapCell::wxHtmlImageMapCell( wxString &name )
|
||||
: m_Name(name)
|
||||
{
|
||||
m_Name = name ;
|
||||
}
|
||||
|
||||
wxHtmlLinkInfo *wxHtmlImageMapCell::GetLink( int x, int y ) const
|
||||
@@ -359,6 +359,7 @@ wxHtmlImageCell::wxHtmlImageCell(wxHtmlWindowInterface *windowIface,
|
||||
wxFSFile *input, double scaleHDPI,
|
||||
int w, bool wpercent, int h, bool hpresent, double scale, int align,
|
||||
const wxString& mapname) : wxHtmlCell()
|
||||
, m_mapName(mapname)
|
||||
{
|
||||
m_windowIface = windowIface;
|
||||
m_scale = scale;
|
||||
@@ -370,7 +371,6 @@ wxHtmlImageCell::wxHtmlImageCell(wxHtmlWindowInterface *windowIface,
|
||||
m_bmpWpercent = wpercent;
|
||||
m_bmpHpresent = hpresent;
|
||||
m_imageMap = NULL;
|
||||
m_mapName = mapname;
|
||||
SetCanLiveOnPagebreak(false);
|
||||
#if wxUSE_GIF && wxUSE_TIMER
|
||||
m_gifDecoder = NULL;
|
||||
|
||||
Reference in New Issue
Block a user