diff options
author | Noel Grandin <noel@peralex.com> | 2015-02-11 13:20:49 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-02-23 09:26:58 +0200 |
commit | ba233e87efddf0a6751b35784dca1c805364ff3b (patch) | |
tree | 9d7c8a4256e688c2d47cb6ecf580ac196c4da2c0 /registry/tools/options.cxx | |
parent | a2fa9e2468aa5c4fd4b610c5d0ebc8959e87a072 (diff) |
remove unnecessary parenthesis in return statements
found with
$ git grep -lP 'return\s*\(\s*\w+\s*\)\s*;'
Change-Id: Ic51606877a9edcadeb647c5bf17bc928b69ab60e
Diffstat (limited to 'registry/tools/options.cxx')
-rw-r--r-- | registry/tools/options.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/registry/tools/options.cxx b/registry/tools/options.cxx index 4e918ec1b6e9..30d58d50d044 100644 --- a/registry/tools/options.cxx +++ b/registry/tools/options.cxx @@ -74,7 +74,7 @@ bool Options::checkArgument(std::vector< std::string> & rArgs, char const * arg, break; } } - return (result); + return result; } // static @@ -84,7 +84,7 @@ bool Options::checkCommandFile(std::vector< std::string > & rArgs, char const * if (fp == 0) { fprintf(stderr, "ERROR: Can't open command file \"%s\"\n", filename); - return (false); + return false; } std::string buffer; @@ -123,7 +123,7 @@ bool Options::checkCommandFile(std::vector< std::string > & rArgs, char const * break; } } - return (fclose(fp) == 0); + return fclose(fp) == 0; } bool Options::initOptions (std::vector< std::string > & rArgs) |