Fix off by one error (thanks drano).

This commit is contained in:
Jason Felds
2006-09-30 08:49:23 +00:00
parent 3f315b0464
commit 1a50d4b078
+2 -2
View File
@@ -41,8 +41,8 @@ RString StepsTypeToString( StepsType st )
s.Replace('-','_');
for( size_t i = 0; i < s.size(); ++i )
{
if( i == 0 || (i > 0 && s[i-1] == '_') )
s[i-1] = toupper( s[i-1] );
if( i == 0 || s[i-1] == '_' )
s[i] = toupper( s[i] );
}
return "StepsType_"+s;
}