avoiding string conversions on 1st param of wxStat, as the latter is having a param of wxString now always and does the conversion internally

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2009-12-09 07:38:22 +00:00
parent 74b1f0b45e
commit 766fc09288
5 changed files with 8 additions and 21 deletions

View File

@@ -1079,7 +1079,7 @@ wxCopyFile (const wxString& file1, const wxString& file2, bool overwrite)
wxStructStat fbuf;
// get permissions of file1
if ( wxStat( file1.c_str(), &fbuf) != 0 )
if ( wxStat( file1, &fbuf) != 0 )
{
// the file probably doesn't exist or we haven't the rights to read
// from it anyhow