More loplugin:simplifybool

Change-Id: Iddfa035ac4b41d203ed6864f83dab69dcec33386
This commit is contained in:
Stephan Bergmann 2015-04-27 15:28:01 +02:00
parent 70ae9dbda8
commit b47ae9d0f6

View File

@ -69,14 +69,14 @@ bool Options::checkArgument (std::vector< std::string > & rArgs, char const * ar
switch(arg[0]) switch(arg[0])
{ {
case '@': case '@':
if ((result = (len > 1)) == true) if ((result = (len > 1)))
{ {
// "@<cmdfile>" // "@<cmdfile>"
result = Options::checkCommandFile (rArgs, &(arg[1])); result = Options::checkCommandFile (rArgs, &(arg[1]));
} }
break; break;
case '-': case '-':
if ((result = (len > 1)) == true) if ((result = (len > 1)))
{ {
// "-<option>" // "-<option>"
switch (arg[1]) switch (arg[1])