Deprecate wxPathExists, make wxDirExists used everywhere, minor source cleaning.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33350 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2005-04-05 16:10:48 +00:00
parent 749a05ee85
commit da865fdd32
22 changed files with 154 additions and 140 deletions

View File

@@ -195,7 +195,7 @@ wxFileDialog::wxFileDialog(wxWindow *parent, const wxString& message,
if ( style & wxSAVE )
{
if ( !defaultDir.IsEmpty() )
if ( !defaultDir.empty() )
gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(m_widget),
wxConvFileName->cWX2MB(defaultDir));
@@ -204,10 +204,10 @@ wxFileDialog::wxFileDialog(wxWindow *parent, const wxString& message,
}
else
{
if ( !defaultFileName.IsEmpty() )
if ( !defaultFileName.empty() )
{
wxString dir;
if ( defaultDir.IsEmpty() )
if ( defaultDir.empty() )
dir = ::wxGetCwd();
else
dir = defaultDir;
@@ -216,7 +216,7 @@ wxFileDialog::wxFileDialog(wxWindow *parent, const wxString& message,
GTK_FILE_CHOOSER(m_widget),
wxConvFileName->cWX2MB( wxFileName(dir, defaultFileName).GetFullPath() ) );
}
else if ( !defaultDir.IsEmpty() )
else if ( !defaultDir.empty() )
gtk_file_chooser_set_current_folder( GTK_FILE_CHOOSER(m_widget),
wxConvFileName->cWX2MB(defaultDir) );
}
@@ -354,7 +354,7 @@ void wxFileDialog::SetDirectory(const wxString& dir)
#ifdef __WXGTK24__
if (!gtk_check_version(2,4,0))
{
if (wxPathExists(dir))
if (wxDirExists(dir))
{
gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(m_widget), wxConvFileName->cWX2MB(dir));
}