X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1169a91932273bc84c23ed9dbd0a2da064d59d66..7d348ae6141fd33748d626b1ff2279b5b2fca176:/src/common/dlgcmn.cpp diff --git a/src/common/dlgcmn.cpp b/src/common/dlgcmn.cpp index 8b6e4f619c..260bb28bc8 100644 --- a/src/common/dlgcmn.cpp +++ b/src/common/dlgcmn.cpp @@ -53,11 +53,6 @@ END_EVENT_TABLE() WX_DELEGATE_TO_CONTROL_CONTAINER(wxDialogBase) #endif -wxDialogBase::wxDialogBase() -{ - Init(); -} - void wxDialogBase::Init() { m_returnCode = 0; @@ -119,7 +114,7 @@ wxSizer *wxDialogBase::CreateTextSizer( const wxString& message ) break; case wxT('&'): - // this is used as accel mnemonic prefix in the wxWindows + // this is used as accel mnemonic prefix in the wxWidgets // controls but in the static messages created by // CreateTextSizer() (used by wxMessageBox, for example), we // don't want this special meaning, so we need to quote it @@ -201,7 +196,6 @@ wxSizer *wxDialogBase::CreateButtonSizer( long flags ) #endif wxButton *ok = (wxButton *) NULL; - wxButton *cancel = (wxButton *) NULL; wxButton *yes = (wxButton *) NULL; wxButton *no = (wxButton *) NULL; @@ -243,7 +237,7 @@ wxSizer *wxDialogBase::CreateButtonSizer( long flags ) if (flags & wxCANCEL) { - cancel = new wxButton( this, wxID_CANCEL, _("Cancel"),wxDefaultPosition,wxDefaultSize,wxCLIP_SIBLINGS ); + wxButton *cancel = new wxButton( this, wxID_CANCEL, _("Cancel"),wxDefaultPosition,wxDefaultSize,wxCLIP_SIBLINGS ); inner_rest->Add( cancel, 0, wxLEFT|wxRIGHT, margin ); }