summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2009-12-20 14:05:58 +0000
committerglx <glx@openttd.org>2009-12-20 14:05:58 +0000
commit5ac036720be0f0f5416632839fbd8382b7d6775e (patch)
tree6fd17d91fef381eb625538cd52d3231ac875f8b3 /src
parent6803672c8872bdfc71b48c6bf33415e6d6cdae0b (diff)
downloadopenttd-5ac036720be0f0f5416632839fbd8382b7d6775e.tar.xz
(svn r18564) -Fix: silence a warning
Diffstat (limited to 'src')
-rw-r--r--src/fontcache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fontcache.cpp b/src/fontcache.cpp
index b66ca037a..5f3d8f75a 100644
--- a/src/fontcache.cpp
+++ b/src/fontcache.cpp
@@ -120,7 +120,7 @@ static FT_Error GetFontByFaceName(const char *font_name, FT_Face *face)
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++) {