diff --git a/stepmania/src/RageSoundManager.cpp b/stepmania/src/RageSoundManager.cpp index eddea2c1dd..a8ef87483a 100644 --- a/stepmania/src/RageSoundManager.cpp +++ b/stepmania/src/RageSoundManager.cpp @@ -100,7 +100,7 @@ void RageSoundManager::Update(float delta) * child sounds first. Otherwise, another sound might be allocated that has the * same pointer as an old, deleted parent, and since we use the pointer to the * parent to determine which sounds share the same parent, it'll confuse GetCopies(). */ - for( all_sounds_type::iterator iter = all_sounds.begin(); iter != all_sounds.end(); ++iter ) + for( set::iterator iter = all_sounds.begin(); iter != all_sounds.end(); ++iter ) if( (*iter)->GetOriginal() != (*iter) ) // child { set::iterator parent = ToDelete.find( (*iter)->GetOriginal() ); @@ -175,7 +175,7 @@ RageSound *RageSoundManager::GetSoundByID( int ID ) LockMut( g_SoundManMutex ); /* Find the sound with p.ID. */ - all_sounds_type::iterator it; + set::iterator it; for( it = all_sounds.begin(); it != all_sounds.end(); ++it ) if( (*it)->GetID() == ID ) return *it; @@ -316,7 +316,7 @@ void RageSoundManager::GetCopies( RageSound &snd, vector &snds, boo g_SoundManMutex.Lock(); /* lock for access to all_sounds */ set sounds; - for( all_sounds_type::iterator iter = all_sounds.begin(); iter != all_sounds.end(); ++iter ) + for( set::iterator iter = all_sounds.begin(); iter != all_sounds.end(); ++iter ) sounds.insert( *iter ); g_SoundManMutex.Unlock(); /* finished with all_sounds */ diff --git a/stepmania/src/RageSoundManager.h b/stepmania/src/RageSoundManager.h index 865275fc2f..557e48fd31 100644 --- a/stepmania/src/RageSoundManager.h +++ b/stepmania/src/RageSoundManager.h @@ -18,8 +18,7 @@ class RageSoundManager set playing_sounds; /* A list of all sounds that currently exist. */ - typedef set > all_sounds_type; - all_sounds_type all_sounds; + set all_sounds; RageSoundDriver *driver;