Utilize const with the pair of WHITE SPACE.

...sigh.
This commit is contained in:
Jason Felds
2013-04-27 14:53:31 -04:00
parent 023deca293
commit 62b6ef4bfc
+2 -2
View File
@@ -150,9 +150,9 @@ void BannerCache::LoadBanner( RString sBannerPath )
void BannerCache::OutputStats() const void BannerCache::OutputStats() const
{ {
int iTotalSize = 0; int iTotalSize = 0;
FOREACHM_CONST( RString, RageSurface *, g_BannerPathToImage, it ) for (std::pair<RString const &, RageSurface *> it : g_BannerPathToImage)
{ {
const RageSurface *pImage = it->second; const RageSurface *pImage = it.second;
const int iSize = pImage->pitch * pImage->h; const int iSize = pImage->pitch * pImage->h;
iTotalSize += iSize; iTotalSize += iSize;
} }