Get rid of a use of wxFNSTRINGCAST

Since chdir() takes a const pointer, the const-removing cast is not needed.
This commit is contained in:
ARATA Mizuki
2016-02-17 23:58:06 +09:00
parent a2b5309f61
commit 45ff4e6b21

View File

@@ -1388,7 +1388,7 @@ bool wxSetWorkingDirectory(const wxString& d)
{
bool success = false;
#if defined(__UNIX__) || defined(__WXMAC__)
success = (chdir(wxFNSTRINGCAST d.fn_str()) == 0);
success = (chdir(d.fn_str()) == 0);
#elif defined(__WINDOWS__)
success = (SetCurrentDirectory(d.t_str()) != 0);
#endif