use find()

This commit is contained in:
Glenn Maynard
2005-12-21 08:46:30 +00:00
parent 902e2a5701
commit a89a488251
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -320,7 +320,7 @@ static bool ChangeAppPri()
{
INPUTMAN->GetDevicesAndDescriptions(vDevices,vDescriptions);
CString sInputDevices = join( ",", vDescriptions );
if( sInputDevices.Find("NTPAD") != -1 )
if( sInputDevices.find("NTPAD") != string::npos )
{
LOG->Trace( "Using NTPAD. Don't boost priority." );
return false;