summaryrefslogtreecommitdiff
path: root/src/fileio.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-05-24 21:09:00 +0000
committerrubidium <rubidium@openttd.org>2009-05-24 21:09:00 +0000
commit168ae6f7e2e87d3050c39bbb03148924751370a3 (patch)
treef231a8b93fcf344d126a8d3aa3ded9803200ca67 /src/fileio.cpp
parent0d99b6c71cd096599b4805d230483f3e4e958af1 (diff)
downloadopenttd-168ae6f7e2e87d3050c39bbb03148924751370a3.tar.xz
(svn r16422) -Codechange: use const_cast for removing const and warn when const is (accidentally?) removed using C-style casts.
Diffstat (limited to 'src/fileio.cpp')
-rw-r--r--src/fileio.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.cpp b/src/fileio.cpp
index 154bd6c9e..7abf732fb 100644
--- a/src/fileio.cpp
+++ b/src/fileio.cpp
@@ -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__)