Mercurial > hg > openttd
changeset 14022:9f643c6d1e45 draft
(svn r18564) -Fix: silence a warning
author | glx <glx@openttd.org> |
---|---|
date | Sun, 20 Dec 2009 14:05:58 +0000 |
parents | 53eee9df97d5 |
children | 5ec270a4cb43 |
files | src/fontcache.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/fontcache.cpp +++ b/src/fontcache.cpp @@ -120,7 +120,7 @@ font_namep = MallocT<TCHAR>(MAX_PATH); MB_TO_WIDE_BUFFER(font_name, font_namep, MAX_PATH * sizeof(TCHAR)); #else - font_namep = (char*)font_name; // only cast because in unicode pointer is not const + font_namep = const_cast<char *>(font_name); // only cast because in unicode pointer is not const #endif for (index = 0;; index++) {