some more s/GetSize/size/ and other minor STLisms

This commit is contained in:
Glenn Maynard
2002-10-31 03:16:02 +00:00
parent 69b816e780
commit 7e9905995d
27 changed files with 75 additions and 80 deletions
+2 -2
View File
@@ -117,9 +117,9 @@ void RageSound::PlayOnceStreamedFromDir( CString sDir )
GetDirListing( sDir + "*.wav", arraySoundFiles );
GetDirListing( sDir + "*.ogg", arraySoundFiles );
if( arraySoundFiles.GetSize() != 0 )
if( !arraySoundFiles.empty() )
{
int index = rand() % arraySoundFiles.GetSize();
int index = rand() % arraySoundFiles.size();
PlayOnceStreamed( sDir + arraySoundFiles[index] );
}
}