#i112871# missing parentheses around || within &&

This commit is contained in:
Caolán McNamara
2010-10-01 09:22:19 +01:00
parent 65abfe810c
commit a4f3959e36

View File

@@ -129,12 +129,12 @@ static string trim_string( const string& rString )
{
string temp = rString;
while ( temp.length() && temp[0] == ' ' || temp[0] == '\t' )
while ( temp.length() && (temp[0] == ' ' || temp[0] == '\t') )
temp.erase( 0, 1 );
string::size_type len = temp.length();
while ( len && temp[len-1] == ' ' || temp[len-1] == '\t' )
while ( len && (temp[len-1] == ' ' || temp[len-1] == '\t') )
{
temp.erase( len - 1, 1 );
len = temp.length();