prefer standard find() over Find

This commit is contained in:
Glenn Maynard
2005-12-21 08:33:30 +00:00
parent 443e80551f
commit dcd1d8f98e
8 changed files with 38 additions and 38 deletions
+3 -3
View File
@@ -58,10 +58,10 @@ bool IniFile::ReadFile( RageFileBasic &f )
else
{
/* New value. */
int iEqualIndex = line.Find("=");
if( iEqualIndex != -1 )
size_t iEqualIndex = line.find("=");
if( iEqualIndex != string::npos )
{
RString valuename = line.Left(iEqualIndex);
RString valuename = line.Left( (int) iEqualIndex );
RString value = line.Right( line.size()-valuename.size()-1 );
if( keyname.size() && valuename.size() )
SetValue(keyname,valuename,value);