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