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:
parent
174b40c28d
commit
7622793080
1 changed files with 3 additions and 5 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue