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
+4 -3
View File
@@ -77,10 +77,11 @@ static const OptionColumnEntry g_OptionColumnEntries[] =
int OptionToPreferredColumn( CString sOptionText )
{
/* Speedups always go in column 0. digit ... x */
if(sOptionText.GetLength() > 1 &&
if( sOptionText.size() > 1 &&
isdigit(sOptionText[0]) &&
tolower(sOptionText[sOptionText.GetLength()-1]) == 'x') {
return 0;
tolower(sOptionText[sOptionText.size()-1]) == 'x' )
{
return 0;
}
for( unsigned i=0; i<ARRAYSIZE(g_OptionColumnEntries); i++ )