Implement wxAuiDefaultTabArt::Clone() using its copy ctor.
Compiler-generated copy ctor works just fine for this class, there is really no reason to reimplement it, especially wrongly (as it loses many and even most of the fields), in Clone(). Closes #11388. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65069 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
4026f044ee
commit
9a7963a97c
@ -236,12 +236,7 @@ wxAuiDefaultTabArt::~wxAuiDefaultTabArt()
|
||||
|
||||
wxAuiTabArt* wxAuiDefaultTabArt::Clone()
|
||||
{
|
||||
wxAuiDefaultTabArt* art = new wxAuiDefaultTabArt;
|
||||
art->SetNormalFont(m_normal_font);
|
||||
art->SetSelectedFont(m_selected_font);
|
||||
art->SetMeasuringFont(m_measuring_font);
|
||||
|
||||
return art;
|
||||
return new wxAuiDefaultTabArt(*this);
|
||||
}
|
||||
|
||||
void wxAuiDefaultTabArt::SetFlags(unsigned int flags)
|
||||
|
Loading…
Reference in New Issue
Block a user