diff --git a/stepmania/src/Font.cpp b/stepmania/src/Font.cpp index b9dbbb7bd7..fdbc6b4ecf 100644 --- a/stepmania/src/Font.cpp +++ b/stepmania/src/Font.cpp @@ -243,7 +243,7 @@ void Font::AddPage( FontPage *m_pPage ) { m_apPages.push_back( m_pPage ); - for( map::const_iterator it = m_pPage->m_iCharToGlyphNo.begin(); + for( map::const_iterator it = m_pPage->m_iCharToGlyphNo.begin(); it != m_pPage->m_iCharToGlyphNo.end(); ++it ) { m_iCharToGlyph[it->first] = &m_pPage->m_aGlyphs[it->second]; @@ -259,7 +259,7 @@ void Font::MergeFont(Font &f) if( m_pDefault == NULL ) m_pDefault = f.m_pDefault; - for(map::iterator it = f.m_iCharToGlyph.begin(); + for(map::iterator it = f.m_iCharToGlyph.begin(); it != f.m_iCharToGlyph.end(); ++it) { m_iCharToGlyph[it->first] = it->second; @@ -279,7 +279,7 @@ const glyph &Font::GetGlyph( wchar_t c ) const return *m_iCharToGlyphCache[c]; /* Try the regular character. */ - map::const_iterator it = m_iCharToGlyph.find(c); + map::const_iterator it = m_iCharToGlyph.find(c); /* If that's missing, use the default glyph. */ if(it == m_iCharToGlyph.end()) @@ -293,7 +293,7 @@ const glyph &Font::GetGlyph( wchar_t c ) const bool Font::FontCompleteForString( const wstring &str ) const { - map::const_iterator m_pDefault = m_iCharToGlyph.find( FONT_DEFAULT_GLYPH ); + map::const_iterator m_pDefault = m_iCharToGlyph.find( FONT_DEFAULT_GLYPH ); if( m_pDefault == m_iCharToGlyph.end() ) RageException::Throw( "The default glyph is missing from the font '%s'", path.c_str() ); @@ -313,7 +313,7 @@ void Font::CapsOnly() * a lowercase one. */ for( char c = 'A'; c <= 'Z'; ++c ) { - map::const_iterator it = m_iCharToGlyph.find(c); + map::const_iterator it = m_iCharToGlyph.find(c); if(it == m_iCharToGlyph.end()) continue; @@ -732,7 +732,7 @@ void Font::Load( const RString &sIniPath, RString sChars ) /* Expect at least as many frames as we have premapped characters. */ /* Make sure that we don't map characters to frames we don't actually * have. This can happen if the font is too small for an sChars. */ - for( map::const_iterator it = pPage->m_iCharToGlyphNo.begin(); + for( map::const_iterator it = pPage->m_iCharToGlyphNo.begin(); it != pPage->m_iCharToGlyphNo.end(); ++it ) { if( it->second < pPage->m_pTexture->GetNumFrames() ) @@ -765,7 +765,7 @@ void Font::Load( const RString &sIniPath, RString sChars ) { /* Cache ASCII glyphs. */ ZERO( m_iCharToGlyphCache ); - map::iterator it; + map::iterator it; for( it = m_iCharToGlyph.begin(); it != m_iCharToGlyph.end(); ++it ) if( it->first < (int) ARRAYLEN(m_iCharToGlyphCache) ) m_iCharToGlyphCache[it->first] = it->second; diff --git a/stepmania/src/Font.h b/stepmania/src/Font.h index 2ead44d94d..3d8d6433e1 100644 --- a/stepmania/src/Font.h +++ b/stepmania/src/Font.h @@ -46,7 +46,7 @@ struct FontPageSettings float m_fScaleAllWidthsBy; RString m_sTextureHints; - map CharToGlyphNo; + map CharToGlyphNo; /* If a value is missing, the width of the texture frame is used. */ map m_mapGlyphWidths; @@ -92,7 +92,7 @@ public: /* All glyphs in this list will point to m_pTexture. */ vector m_aGlyphs; - map m_iCharToGlyphNo; + map m_iCharToGlyphNo; private: void SetExtraPixels( int iDrawExtraPixelsLeft, int DrawExtraPixelsRight ); @@ -145,7 +145,7 @@ private: FontPage *m_pDefault; /* Map from characters to glyphs. (Each glyph* is part of one of pages[].) */ - map m_iCharToGlyph; + map m_iCharToGlyph; glyph *m_iCharToGlyphCache[128]; // True for Hebrew, Arabic, Urdu fonts.