From cdd3714a6c7d4ce0ee2b0d04506c7f38d68cc86d Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 14 Jun 2003 23:21:47 +0000 Subject: [PATCH] Don't warn for missing banner cache files. Fix const. --- stepmania/src/BannerCache.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stepmania/src/BannerCache.cpp b/stepmania/src/BannerCache.cpp index a42d49196b..e651ee3295 100644 --- a/stepmania/src/BannerCache.cpp +++ b/stepmania/src/BannerCache.cpp @@ -57,7 +57,7 @@ void BannerCache::LoadAllBanners() SDL_Surface *img = mySDL_LoadSurface( CachePath ); if( img == NULL ) { - LOG->Warn( "Cached banner load of '%s' failed", CachePath.c_str() ); + LOG->Trace( "Cached banner load of '%s' ('%s') failed", BannerPath.c_str(), CachePath.c_str() ); continue; } @@ -65,11 +65,11 @@ void BannerCache::LoadAllBanners() } - map::iterator ban; + map::const_iterator ban; int total_size = 0; for( ban = m_BannerPathToImage.begin(); ban != m_BannerPathToImage.end(); ++ban ) { - SDL_Surface *&img = ban->second; + SDL_Surface * const &img = ban->second; const int size = img->pitch * img->h; total_size += size; }