Start working on the other map loops.

This commit is contained in:
Jason Felds
2013-04-27 23:50:37 -04:00
parent 9ec7272416
commit 6d57d2fbf5
+3 -3
View File
@@ -136,11 +136,11 @@ void NoteField::CacheAllUsedNoteSkins()
/* If we're changing note skins in the editor, we can have old note skins lying /* If we're changing note skins in the editor, we can have old note skins lying
* around. Remove them so they don't accumulate. */ * around. Remove them so they don't accumulate. */
set<RString> setNoteSkinsToUnload; set<RString> setNoteSkinsToUnload;
FOREACHM( RString, NoteDisplayCols *, m_NoteDisplays, d ) for (std::pair<RString const &, NoteDisplayCols *> d : m_NoteDisplays)
{ {
bool unused = find(asSkinsLower.begin(), asSkinsLower.end(), d->first) == asSkinsLower.end(); bool unused = find(asSkinsLower.begin(), asSkinsLower.end(), d.first) == asSkinsLower.end();
if( unused ) if( unused )
setNoteSkinsToUnload.insert( d->first ); setNoteSkinsToUnload.insert( d.first );
} }
for (RString const & skin : setNoteSkinsToUnload) for (RString const & skin : setNoteSkinsToUnload)
UncacheNoteSkin( skin ); UncacheNoteSkin( skin );