(svn r18564) -Fix: silence a warning

This commit is contained in:
glx
2009-12-20 14:05:58 +00:00
parent af8b516bff
commit da99cc15e9

View File

@@ -120,7 +120,7 @@ static FT_Error GetFontByFaceName(const char *font_name, FT_Face *face)
font_namep = MallocT<TCHAR>(MAX_PATH); font_namep = MallocT<TCHAR>(MAX_PATH);
MB_TO_WIDE_BUFFER(font_name, font_namep, MAX_PATH * sizeof(TCHAR)); MB_TO_WIDE_BUFFER(font_name, font_namep, MAX_PATH * sizeof(TCHAR));
#else #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 #endif
for (index = 0;; index++) { for (index = 0;; index++) {