mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
rename variable and change parameters in call to find_last_not_of() to hopefully be a little more accurate to what it's doing
svn path=/trunk/; revision=17837
This commit is contained in:
parent
130efbb545
commit
3b0cfca870
1 changed files with 3 additions and 3 deletions
|
@ -863,9 +863,9 @@ MingwBackend::GetBinutilsVersion ( const string& binutilsCommand )
|
|||
token = strtok ( NULL, separators );
|
||||
}
|
||||
string version = string ( prevtoken );
|
||||
int firstSpace = version.find_last_not_of ( " \t" );
|
||||
if ( firstSpace != -1 )
|
||||
return string ( version, 0, firstSpace);
|
||||
int lastDigit = version.find_last_not_of ( "\t\r\n" );
|
||||
if ( lastDigit != -1 )
|
||||
return string ( version, 0, lastDigit+1 );
|
||||
else
|
||||
return version;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue