cleanup (prefer size() over GetLength)

This commit is contained in:
Glenn Maynard
2005-12-21 07:50:14 +00:00
parent 5e2806c5f7
commit 39b07e55b3
11 changed files with 25 additions and 21 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ bool RandomSample::LoadSoundDir( CString sDir, int iMaxToLoad )
* so we'll look for eg. themes\Default\sounds\sDir\*.mp3. Otherwise,
* don't, so we'll look for all of the files starting with sDir,
* eg. themes\Default\sounds\sDir*.mp3. */
if(IsADirectory(sDir) && sDir[sDir.GetLength()-1] != "/" )
if(IsADirectory(sDir) && sDir[sDir.size()-1] != "/" )
sDir += "/";
#else
// make sure there's a slash at the end of this path