Chameleon Applications

Chameleon Applications Commit Details

Date:2011-12-06 06:32:48 (5 years 10 months ago)
Author:Rekursor
Commit:454
Parents: 453
Message:Revisited KernelOptionsParser, factorized and fixed one case where autotrim of space between = flags would sometimes eat one more char. part 2
Changes:
M/trunk/ChameleonPrefPane/Sources/KernOptionsParser.cpp

File differences

trunk/ChameleonPrefPane/Sources/KernOptionsParser.cpp
4646
4747
4848
49
49
50
5051
5152
5253
if (found==std::string::npos) return;
// find the end of the flag
for ( pos=found+f.length(); pos<l && _options[pos]!=' '; pos++);
_options.erase(found, pos);
if (pos==l) _options.erase(found); // eol and no space found , remove till the end
else _options.erase(found, pos-found+1);
_options = trim(_options);
}

Archive Download the corresponding diff file

Revision: 454