summaryrefslogtreecommitdiffstats
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.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/netlist/plib/poptions.cpp b/src/lib/netlist/plib/poptions.cpp
index b0bade9ada6..ff102bba851 100644
--- a/src/lib/netlist/plib/poptions.cpp
+++ b/src/lib/netlist/plib/poptions.cpp
@@ -223,7 +223,7 @@ namespace plib {
{
line += "=";
auto *ol = dynamic_cast<option_str_limit_base *>(opt);
- if (ol)
+ if (ol != nullptr)
{
for (const auto &v : ol->limit())
{
@@ -274,7 +274,7 @@ namespace plib {
for (const auto & optbase : m_opts)
{
auto *opt = dynamic_cast<option *>(optbase);
- if (opt && arg != "" && opt->short_opt() == arg)
+ if (opt != nullptr && arg != "" && opt->short_opt() == arg)
return opt;
}
return nullptr;
@@ -284,7 +284,7 @@ namespace plib {
for (const auto & optbase : m_opts)
{
auto *opt = dynamic_cast<option *>(optbase);
- if (opt && arg !="" && opt->long_opt() == arg)
+ if (opt != nullptr && arg !="" && opt->long_opt() == arg)
return opt;
}
return nullptr;