wxOS2 with Open Watcom: correct PCH usage, missing headers, warning fixes, source cleaning and other Watcom adjustements.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34901 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user