X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e83ecba968c94965523be449a56fffcf4c55010b..9239ff22aec593aae93f790e3b6f812a31d0f0c7:/src/common/filename.cpp?ds=sidebyside diff --git a/src/common/filename.cpp b/src/common/filename.cpp index 05a84579cf..b639fda809 100644 --- a/src/common/filename.cpp +++ b/src/common/filename.cpp @@ -640,7 +640,7 @@ wxFileName::CreateTempFileName(const wxString& prefix, wxFile *fileTemp) // can use the cast here because the length doesn't change and the string // is not shared - int fdTemp = mkstemp((char *)path.mb_str()); + int fdTemp = mkstemp((char*)(const char *)path.mb_str()); if ( fdTemp == -1 ) { // this might be not necessary as mkstemp() on most systems should have @@ -1601,7 +1601,7 @@ bool wxFileName::SetTimes(const wxDateTime *dtAccess, utimbuf utm; utm.actime = dtAccess ? dtAccess->GetTicks() : dtMod->GetTicks(); utm.modtime = dtMod ? dtMod->GetTicks() : dtAccess->GetTicks(); - if ( utime(GetFullPath(), &utm) == 0 ) + if ( utime(GetFullPath().fn_str(), &utm) == 0 ) { return TRUE; } @@ -1639,7 +1639,7 @@ bool wxFileName::Touch() { #if defined(__UNIX_LIKE__) // under Unix touching file is simple: just pass NULL to utime() - if ( utime(GetFullPath(), NULL) == 0 ) + if ( utime(GetFullPath().fn_str(), NULL) == 0 ) { return TRUE; } @@ -1660,7 +1660,7 @@ bool wxFileName::GetTimes(wxDateTime *dtAccess, { #if defined(__UNIX_LIKE__) || defined(__WXMAC__) || (defined(__DOS__) && defined(__WATCOMC__)) wxStructStat stBuf; - if ( wxStat(GetFullPath(), &stBuf) == 0 ) + if ( wxStat( GetFullPath().c_str(), &stBuf) == 0 ) { if ( dtAccess ) dtAccess->Set(stBuf.st_atime);