prefer standard find() over Find

This commit is contained in:
Glenn Maynard
2005-12-21 08:43:44 +00:00
parent dcd1d8f98e
commit 902e2a5701
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -96,8 +96,8 @@ bool CodeItem::Load( CString sButtonsNames )
const Game* pGame = GAMESTATE->GetCurrentGame();
vector<CString> asButtonNames;
bool bHasAPlus = sButtonsNames.Find( '+' ) != -1;
bool bHasADash = sButtonsNames.Find( '-' ) != -1;
bool bHasAPlus = sButtonsNames.find( '+' ) != string::npos;
bool bHasADash = sButtonsNames.find( '-' ) != string::npos;
if( bHasAPlus )
{