Replaced wxFileName::FileExists with wxFileExists

This commit is contained in:
Zane U. Ji 2013-12-14 16:04:05 +08:00
parent a34b60072f
commit bf9eea070e
3 changed files with 6 additions and 6 deletions

View File

@ -665,7 +665,7 @@ void StyleDialog::OnStyleWebReport ( wxCommandEvent& event )
ofs.close(); ofs.close();
// display file in browser // display file in browser
if ( !wxFileName::FileExists ( tempNameWide ) ) if ( !wxFileExists ( tempNameWide ) )
return; return;
wxLaunchDefaultBrowser ( tempNameWide ); wxLaunchDefaultBrowser ( tempNameWide );
@ -731,7 +731,7 @@ void StyleDialog::OnStyleWebSummary ( wxCommandEvent& event )
ofs.close(); ofs.close();
// display file in browser // display file in browser
if ( !wxFileName::FileExists ( tempNameWide ) ) if ( !wxFileExists ( tempNameWide ) )
return; return;
wxLaunchDefaultBrowser ( tempNameWide ); wxLaunchDefaultBrowser ( tempNameWide );

View File

@ -3006,7 +3006,7 @@ bool MyFrame::openFile ( wxString& fileName, bool largeFile )
} }
#endif #endif
if ( !wxFileName::FileExists ( fileName ) ) if ( !wxFileExists ( fileName ) )
{ {
wxString message; wxString message;
message.Printf ( _ ( "Cannot open %s." ), fileName.c_str() ); message.Printf ( _ ( "Cannot open %s." ), fileName.c_str() );
@ -4175,7 +4175,7 @@ void MyFrame::OnXslt ( wxCommandEvent& event )
path = PathResolver::run ( path, doc->getFullFileName() ); path = PathResolver::run ( path, doc->getFullFileName() );
if ( !wxFileName::FileExists ( path ) ) if ( !wxFileExists ( path ) )
{ {
if ( !path.empty() ) if ( !path.empty() )
{ {

View File

@ -113,7 +113,7 @@ void XMLCALL XmlCopyImg::start ( void *data,
wideFile = fn.GetFullPath(); wideFile = fn.GetFullPath();
} }
if ( !wxFileName::FileExists ( wideFile ) ) if ( !wxFileExists ( wideFile ) )
{ {
wideDestination = pd->blankImage; wideDestination = pd->blankImage;
value = "images/blank.jpg"; value = "images/blank.jpg";
@ -166,7 +166,7 @@ void XMLCALL XmlCopyImg::start ( void *data,
fn.MakeAbsolute ( pd->path ); fn.MakeAbsolute ( pd->path );
wideFile = fn.GetFullPath(); wideFile = fn.GetFullPath();
} }
if ( !wxFileName::FileExists ( wideFile ) ) if ( !wxFileExists ( wideFile ) )
{ {
value = "images/blank.jpg"; value = "images/blank.jpg";
} }