(svn r16422) -Codechange: use const_cast for removing const and warn when const is (accidentally?) removed using C-style casts.
This commit is contained in:
@@ -807,7 +807,7 @@ void ChangeWorkingDirectory(const char *exe)
|
||||
|
||||
if (app_bundle != NULL) app_bundle[0] = '\0';
|
||||
#endif /* WITH_COCOA */
|
||||
char *s = (char*)strrchr(exe, PATHSEPCHAR);
|
||||
char *s = const_cast<char *>(strrchr(exe, PATHSEPCHAR));
|
||||
if (s != NULL) {
|
||||
*s = '\0';
|
||||
#if defined(__DJGPP__)
|
||||
|
Reference in New Issue
Block a user