X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0fba44b4103530bd7904c4b5720b7568b753daec..e15f0a5ea372e3a6c693fb6aa4fe73893a9af797:/src/os2/filedlg.cpp diff --git a/src/os2/filedlg.cpp b/src/os2/filedlg.cpp index c7e65a98a0..eb13f40443 100644 --- a/src/os2/filedlg.cpp +++ b/src/os2/filedlg.cpp @@ -16,6 +16,8 @@ #pragma hdrstop #endif +#if wxUSE_FILEDLG + #ifndef WX_PRECOMP #include "wx/utils.h" #include "wx/msgdlg.h" @@ -55,6 +57,7 @@ #ifndef MAXEXT # define MAXEXT 5 #endif + IMPLEMENT_CLASS(wxFileDialog, wxFileDialogBase) // ---------------------------------------------------------------------------- @@ -207,7 +210,7 @@ int wxFileDialog::ShowModal() } if (nCount == 0) sDir += m_fileName; - if (sDir.IsEmpty()) + if (sDir.empty()) sDir = wxT("*.*"); wxStrcpy((wxChar*)vFileDlg.szFullFile, sDir); sFilterBuffer = sDir; @@ -253,7 +256,7 @@ int wxFileDialog::ShowModal() ,&m_fileName ,&sExt ); - if (zFileNameBuffer[nIdx] == wxT('.') || sExt.IsEmpty()) + if (zFileNameBuffer[nIdx] == wxT('.') || sExt.empty()) { zFileNameBuffer[nIdx] = wxT('\0'); @@ -321,3 +324,4 @@ int wxFileDialog::ShowModal() return wxID_CANCEL; } // end of wxFileDialog::ShowModal +#endif // wxUSE_FILEDLG