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:
@@ -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
|
||||
|
Reference in New Issue
Block a user