prefer standard find() over Find

This commit is contained in:
Glenn Maynard
2005-12-21 08:27:00 +00:00
parent 8f4496685e
commit 443e80551f
6 changed files with 21 additions and 21 deletions
+2 -2
View File
@@ -30,7 +30,7 @@ void GradeDisplay::Load( RageTextureID ID )
Sprite::StopAnimating();
bool bWarn = Sprite::GetNumStates() != 8 && Sprite::GetNumStates() != 16;
if( ID.filename.Find("_blank") != -1 )
if( ID.filename.find("_blank") != CString::npos )
bWarn = false;
if( bWarn )
{
@@ -74,7 +74,7 @@ void GradeDisplay::Update( float fDeltaTime )
int GradeDisplay::GetFrameIndex( PlayerNumber pn, Grade g )
{
if( this->m_pTexture->GetID().filename.Find("_blank") != -1 )
if( this->m_pTexture->GetID().filename.find("_blank") != string::npos )
return 0;
// either 8, or 16 states