summaryrefslogtreecommitdiff
path: root/registry
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-10 11:34:51 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-10 17:11:44 +0100
commit21eae4b202c40e09db2bba3a2b249716a0d94cd3 (patch)
treef29c61a86d0ce39d7010d23574f72d93a797b2ee /registry
parented6a2f3bb94b4ffdb2fe95e167fcb0ce38a4cb58 (diff)
simplify
Change-Id: I564ef5ebf16c0ee50da69f3d8b97a5452a1cd0b8
Diffstat (limited to 'registry')
-rw-r--r--registry/tools/options.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/registry/tools/options.cxx b/registry/tools/options.cxx
index 02057091f863..4e918ec1b6e9 100644
--- a/registry/tools/options.cxx
+++ b/registry/tools/options.cxx
@@ -47,14 +47,16 @@ bool Options::checkArgument(std::vector< std::string> & rArgs, char const * arg,
switch (arg[0])
{
case '@':
- if ((result = (len > 1)) == true)
+ result = len > 1;
+ if (result)
{
// "@<cmdfile>"
result = Options::checkCommandFile(rArgs, &(arg[1]));
}
break;
case '-':
- if ((result = (len > 1)) == true)
+ result = len > 1;
+ if (result)
{
// "-<option>"
std::string option (&(arg[0]), 2);