From 9a7963a97c6a4fc181949d2c0ab8ba7daaed663c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 23 Jul 2010 23:33:51 +0000 Subject: [PATCH] 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 --- src/aui/auibook.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/aui/auibook.cpp b/src/aui/auibook.cpp index 34b51274db..9796ad4c73 100644 --- a/src/aui/auibook.cpp +++ b/src/aui/auibook.cpp @@ -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) -- 2.45.2