X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8f50c527a85be1700d6c9abb1d565142212f2d7e..39d16996b7616bf8090b140db74fd0b52d50d169:/src/common/utilscmn.cpp diff --git a/src/common/utilscmn.cpp b/src/common/utilscmn.cpp index 807d65453f..71958c6fc2 100644 --- a/src/common/utilscmn.cpp +++ b/src/common/utilscmn.cpp @@ -72,7 +72,6 @@ #include "wx/notebook.h" #include "wx/frame.h" #include "wx/statusbr.h" - #include "wx/toolbar.h" #endif // wxUSE_GUI #include @@ -90,6 +89,15 @@ #include "wx/msw/private.h" #endif +// ---------------------------------------------------------------------------- +// common data +// ---------------------------------------------------------------------------- + +#if WXWIN_COMPATIBILITY_2_2 + const wxChar *wxInternalErrorStr = wxT("wxWindows Internal Error"); + const wxChar *wxFatalErrorStr = wxT("wxWindows Fatal Error"); +#endif // WXWIN_COMPATIBILITY_2_2 + // ---------------------------------------------------------------------------- // function protoypes // ---------------------------------------------------------------------------- @@ -994,7 +1002,7 @@ wxFont wxGetFontFromUser(wxWindow *parent, const wxFont& fontInit) } wxFont fontRet; - wxFontDialog dialog(parent, &data); + wxFontDialog dialog(parent, data); if ( dialog.ShowModal() == wxID_OK ) { fontRet = dialog.GetFontData().GetChosenFont(); @@ -1286,7 +1294,7 @@ static long wxDoExecuteWithCapture(const wxString& command, wxProcess *process = new wxProcess; process->Redirect(); - long rc = wxExecute(command, TRUE /* sync */, process); + long rc = wxExecute(command, wxEXEC_SYNC, process); #if wxUSE_STREAMS if ( rc != -1 )