summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/plib/poptions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/netlist/plib/poptions.cpp')
-rw-r--r--src/lib/netlist/plib/poptions.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/lib/netlist/plib/poptions.cpp b/src/lib/netlist/plib/poptions.cpp
index 6f6ace0599c..fd683d888d8 100644
--- a/src/lib/netlist/plib/poptions.cpp
+++ b/src/lib/netlist/plib/poptions.cpp
@@ -75,15 +75,13 @@ namespace plib {
{
if (m_other_args != nullptr)
{
- pthrow<pexception>("other args can only be specified once!");
- }
- else
- {
- m_other_args = ov;
+ throw pexception("other args can only be specified once!");
}
+
+ m_other_args = ov;
}
else
- pthrow<pexception>("found option with neither short or long tag!" );
+ 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);