minor optimizations

This commit is contained in:
Glenn Maynard
2005-03-22 23:04:03 +00:00
parent 46b36d5111
commit 813dd2b127
+4 -3
View File
@@ -43,10 +43,11 @@ bool IniFile::ReadFile( RageFileBasic &f )
utf8_remove_bom( line );
if( line == "" )
if( line.size() == 0 )
continue;
if( line.substr(0, 2) == "//" || line.substr(0) == "#" )
if( line[0] == '#' )
continue; /* comment */
if( line.size() > 1 && line[0] == '/' && line[1] == '/' )
continue; /* comment */
if( line[0] == '[' && line[line.GetLength()-1] == ']' )