1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-05-07 03:39:35 +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") if (token == "value")
{ {
// Skip whitespace. There should be a better way to do this, but // Reads until end of line and left trim white space
// I don't know how... getline(uip, token);
while(isspace(uip.get())); token.erase(0, token.find_first_not_of(" \n\r\t"));
uip.unget();
getline(uip, token); // reads until end of line
set_option_value(name, token); set_option_value(name, token);
} else } else
push_button(name); push_button(name);