From: Vadim Zeitlin Date: Fri, 31 Jul 2009 12:17:05 +0000 (+0000) Subject: Use base class ctors in wxTopLevelWindow. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/49899527ffe8b33f80207ddda5de0daa0118c08a Use base class ctors in wxTopLevelWindow. This avoids the second call to Init() already called by wxTopLevelWindowNative. Closes #11054. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61568 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/toplevel.h b/include/wx/toplevel.h index c8bd227475..c5cbf1e220 100644 --- a/include/wx/toplevel.h +++ b/include/wx/toplevel.h @@ -349,7 +349,7 @@ protected: { public: // construction - wxTopLevelWindow() { Init(); } + wxTopLevelWindow() { } wxTopLevelWindow(wxWindow *parent, wxWindowID winid, const wxString& title, @@ -357,9 +357,9 @@ protected: const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, const wxString& name = wxFrameNameStr) + : wxTopLevelWindowNative(parent, winid, title, + pos, size, style, name) { - Init(); - Create(parent, winid, title, pos, size, style, name); } DECLARE_DYNAMIC_CLASS_NO_COPY(wxTopLevelWindow)