X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..d485bda109d5ef0fef36a3f737549e9b9f54baab:/src/msw/fdrepdlg.cpp diff --git a/src/msw/fdrepdlg.cpp b/src/msw/fdrepdlg.cpp index 78b7f27dc2..d185b884c3 100644 --- a/src/msw/fdrepdlg.cpp +++ b/src/msw/fdrepdlg.cpp @@ -217,7 +217,7 @@ wxFindReplaceDialogImpl::FindMessageHandler(wxWindow * WXUNUSED(win), #if wxUSE_UNICODE_MSLU // This is a hack for a MSLU problem: Versions up to 1.0.4011 // of UNICOWS.DLL send the correct UNICODE item after button press - // and a bogus ANSI mode item right after this, so lets ignore + // and a bogus ANSI mode item right after this, so let's ignore // the second bogus message if ( wxUsingUnicowsDll() && s_lastMsgFlags == pFR->Flags ) { @@ -310,7 +310,7 @@ wxFindReplaceDialogHookProc(HWND hwnd, FINDREPLACE *pFR = (FINDREPLACE *)lParam; wxFindReplaceDialog *dialog = (wxFindReplaceDialog *)pFR->lCustData; - ::SetWindowText(hwnd, dialog->GetTitle().wx_str()); + ::SetWindowText(hwnd, dialog->GetTitle().t_str()); // don't return FALSE from here or the dialog won't be shown return TRUE; @@ -443,8 +443,7 @@ bool wxFindReplaceDialog::Show(bool show) wxLogError(_("Failed to create the standard find/replace dialog (error code %d)"), ::CommDlgExtendedError()); - delete m_impl; - m_impl = NULL; + wxDELETE(m_impl); return false; }