X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ade4ae2c51fd5406a8d7bbebc36ccd2c94e48c59..010d821b3138ae39c43403da64eb0bcde9af82ae:/src/generic/dbgrptg.cpp diff --git a/src/generic/dbgrptg.cpp b/src/generic/dbgrptg.cpp index ba5c797c24..99416162ce 100644 --- a/src/generic/dbgrptg.cpp +++ b/src/generic/dbgrptg.cpp @@ -4,9 +4,8 @@ // Author: Vadim Zeitlin, Andrej Putrin // Modified by: // Created: 2005-01-21 -// RCS-ID: $Id$ // Copyright: (c) 2005 Vadim Zeitlin -// License: wxWindows licence +// Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// // ============================================================================ @@ -39,7 +38,11 @@ #endif // WX_PRECOMP #include "wx/filename.h" -#include "wx/ffile.h" +#ifdef wxUSE_FFILE + #include "wx/ffile.h" +#else + #include "wx/file.h" +#endif #include "wx/mimetype.h" #include "wx/statline.h" @@ -228,7 +231,7 @@ void wxDumpOpenExternalDlg::OnBrowse(wxCommandEvent& ) fname.GetPathWithSep(), fname.GetFullName() #ifdef __WXMSW__ - , _("Executable files (*.exe)|*.exe|All files (*.*)|*.*||") + , _("Executable files (*.exe)|*.exe|") + wxALL_FILES #endif // __WXMSW__ ); if ( dlg.ShowModal() == wxID_OK ) @@ -432,7 +435,12 @@ void wxDebugReportDialog::OnView(wxCommandEvent& ) wxFileName fn(m_dbgrpt.GetDirectory(), m_files[sel]); wxString str; - wxFFile file(fn.GetFullPath()); + const wxString& fullPath = fn.GetFullPath(); +#if wxUSE_FFILE + wxFFile file(fullPath); +#elif wxUSE_FILE + wxFile file(fullPath); +#endif if ( file.IsOpened() && file.ReadAll(&str) ) { wxDumpPreviewDlg dlg(this, m_files[sel], str);