summaryrefslogtreecommitdiff
path: root/idlc/source/options.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-11-29 17:20:19 +0100
committerStephan Bergmann <sbergman@redhat.com>2016-11-29 17:20:19 +0100
commitd4864a9440ef3fecb497e1ea7018f927e2e64059 (patch)
tree6f195b1dec4f6127e6b21327c9244e4772f9c288 /idlc/source/options.cxx
parent2a2ed5878a79999d405e26a5c586883b19e7b09f (diff)
Rewrite some (trivial) assignments inside if/while conditions: idlc
Change-Id: I6be338f54dd8e6912e48258c0a2e075dc69b2893
Diffstat (limited to 'idlc/source/options.cxx')
-rw-r--r--idlc/source/options.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/idlc/source/options.cxx b/idlc/source/options.cxx
index 9a3eee6daf47..0d02236cac47 100644
--- a/idlc/source/options.cxx
+++ b/idlc/source/options.cxx
@@ -69,14 +69,16 @@ bool Options::checkArgument (std::vector< std::string > & rArgs, char const * ar
switch(arg[0])
{
case '@':
- if ((result = (len > 1)))
+ result = len > 1;
+ if (result)
{
// "@<cmdfile>"
result = Options::checkCommandFile (rArgs, &(arg[1]));
}
break;
case '-':
- if ((result = (len > 1)))
+ result = len > 1;
+ if (result)
{
// "-<option>"
switch (arg[1])