summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/plib/poptions.cpp
diff options
context:
space:
mode:
author couriersud <couriersud@gmx.org>2020-01-25 21:13:21 +0100
committer couriersud <couriersud@gmx.org>2020-01-25 21:13:21 +0100
commit6874b1f7ac8e5d91503a5b47fe95f86e491d5914 (patch)
tree21fc875d7f9574f1213a9be264498bf11a36b031 /src/lib/netlist/plib/poptions.cpp
parent9431ee68e78aa0fe5164bfa7466f35ebd02f560d (diff)
netlist: clang lint readability fixes. (nw)
Diffstat (limited to 'src/lib/netlist/plib/poptions.cpp')
-rw-r--r--src/lib/netlist/plib/poptions.cpp8
1 files changed, 3 insertions, 5 deletions
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);