aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Wouter van Kesteren <woutershep@gmail.com> 2015-05-16 15:36:08 +0200
committerAvatar Bo ├śrsted Andresen <zlin@exherbo.org> 2015-08-21 17:25:24 +0200
commit65d5e4a67366217fa8ccb18302f01a9148c40ac3 (patch)
tree7747e210690a73c526411836f1a6f8c1eb4d28a9
parenta7fe415ebf474a13dea431b3c3ab230bf6ea414c (diff)
downloadpaludis-65d5e4a67366217fa8ccb18302f01a9148c40ac3.tar.gz
paludis-65d5e4a67366217fa8ccb18302f01a9148c40ac3.tar.xz
Remove superfluous parentheses.
Change-Id: Ie9bb78af07f7613fa876a380da197df71976be18 Reviewed-on: https://galileo.mailstation.de/gerrit/1895 Reviewed-by: Bo ├śrsted Andresen <zlin@exherbo.org>
-rw-r--r--paludis/args/args_option.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/paludis/args/args_option.cc b/paludis/args/args_option.cc
index 3d91f61..3d786d7 100644
--- a/paludis/args/args_option.cc
+++ b/paludis/args/args_option.cc
@@ -238,7 +238,7 @@ StringSetArg::add_argument(const std::string & arg)
if (! _imp->allowed_args.empty())
if (_imp->allowed_args.end() == std::find_if(_imp->allowed_args.begin(),
_imp->allowed_args.end(), ArgIs(arg)))
- throw (BadValue("--" + long_name(), arg));
+ throw BadValue("--" + long_name(), arg);
if (_validator)
(*_validator)(arg);
@@ -428,7 +428,7 @@ EnumArg::set_argument(const std::string & arg)
/* if we're given the short arg, turn it magically into the long one */
AllowedArgConstIterator i(std::find_if(_imp->allowed_args.begin(), _imp->allowed_args.end(), ArgIs(arg)));
if (i == _imp->allowed_args.end())
- throw (BadValue("--" + long_name(), arg));
+ throw BadValue("--" + long_name(), arg);
_argument = i->long_name();
}