From 6874b1f7ac8e5d91503a5b47fe95f86e491d5914 Mon Sep 17 00:00:00 2001 From: couriersud Date: Sat, 25 Jan 2020 21:13:21 +0100 Subject: netlist: clang lint readability fixes. (nw) --- src/lib/netlist/plib/poptions.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/lib/netlist/plib/poptions.cpp') diff --git a/src/lib/netlist/plib/poptions.cpp b/src/lib/netlist/plib/poptions.cpp index 6746e453fae..fd683d888d8 100644 --- a/src/lib/netlist/plib/poptions.cpp +++ b/src/lib/netlist/plib/poptions.cpp @@ -77,10 +77,8 @@ namespace plib { { throw pexception("other args can only be specified once!"); } - else - { - m_other_args = ov; - } + + m_other_args = ov; } else throw pexception("found option with neither short or long tag!" ); @@ -105,7 +103,7 @@ namespace plib { if (!seen_other_args && plib::startsWith(arg, "--")) { auto v = psplit(arg.substr(2),"="); - if (v.size() && v[0] != "") + if (!v.empty() && v[0] != "") { opt = getopt_long(v[0]); has_equal_arg = (v.size() > 1); -- cgit v1.2.3-70-g09d2