From 45ff4e6b218f03c7303b3ad79967f2bccffa9cc9 Mon Sep 17 00:00:00 2001 From: ARATA Mizuki Date: Wed, 17 Feb 2016 23:58:06 +0900 Subject: [PATCH] Get rid of a use of wxFNSTRINGCAST Since chdir() takes a const pointer, the const-removing cast is not needed. --- src/common/filefn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index 26bdb9986f..a5fc4e6265 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -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