1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-05-02 09:39:36 +00:00

Small tidy up of previous patch

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba 2009-07-10 18:50:43 +01:00
parent 174b40c28d
commit 7622793080

View file

@ -242,12 +242,10 @@ namespace {
}
if (token == "value")
{
// Skip whitespace. There should be a better way to do this, but
// I don't know how...
while(isspace(uip.get()));
uip.unget();
// Reads until end of line and left trim white space
getline(uip, token);
token.erase(0, token.find_first_not_of(" \n\r\t"));
getline(uip, token); // reads until end of line
set_option_value(name, token);
} else
push_button(name);