From f98d003e354a1792117b7cbc771d1dd91475a156 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 18 Mar 2011 17:48:29 +0200 Subject: Fix most old style cast except manaserv and libxml2 defines. --- src/gui/truetypefont.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/gui/truetypefont.cpp') diff --git a/src/gui/truetypefont.cpp b/src/gui/truetypefont.cpp index a25f4748a..62003d94c 100644 --- a/src/gui/truetypefont.cpp +++ b/src/gui/truetypefont.cpp @@ -173,8 +173,11 @@ void TrueTypeFont::loadFont(const std::string &filename, int size, int style) void TrueTypeFont::clear() { - for (unsigned short f = 0; f < (unsigned short)CACHES_NUMBER; f ++) + for (unsigned short f = 0; f < static_cast( + CACHES_NUMBER); f ++) + { mCache[static_cast(f)].clear(); + } } void TrueTypeFont::drawString(gcn::Graphics *graphics, -- cgit v1.2.3-70-g09d2