summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/plib/pparser.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-04-24 12:57:58 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-04-24 12:58:31 +0200
commit89c5e1f681107b6d9f8ba7f761c388d1e2052fe4 (patch)
treec5ce4530d0c03fa1c04021844272b82b7b7ebcbc /src/lib/netlist/plib/pparser.cpp
parentef0968b87042040e1f0e18c84ce804f744f8e23e (diff)
Various cleanups suggested by static analyzer (nw)
Diffstat (limited to 'src/lib/netlist/plib/pparser.cpp')
-rw-r--r--src/lib/netlist/plib/pparser.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/netlist/plib/pparser.cpp b/src/lib/netlist/plib/pparser.cpp
index 9362ba7de0d..70e48ba5c23 100644
--- a/src/lib/netlist/plib/pparser.cpp
+++ b/src/lib/netlist/plib/pparser.cpp
@@ -352,7 +352,7 @@ ppreprocessor::define_t *ppreprocessor::get_define(const pstring &name)
if (idx >= 0)
return &m_defines.value_at(idx);
else
- return NULL;
+ return nullptr;
}
pstring ppreprocessor::replace_macros(const pstring &line)
@@ -362,7 +362,7 @@ pstring ppreprocessor::replace_macros(const pstring &line)
for (std::size_t i=0; i<elems.size(); i++)
{
define_t *def = get_define(elems[i]);
- if (def != NULL)
+ if (def != nullptr)
ret.cat(def->m_replace);
else
ret.cat(elems[i]);
@@ -403,13 +403,13 @@ pstring ppreprocessor::process_line(const pstring &line)
else if (lti[0].equals("#ifdef"))
{
m_level++;
- if (get_define(lti[1]) == NULL)
+ if (get_define(lti[1]) == nullptr)
m_ifflag |= (1 << m_level);
}
else if (lti[0].equals("#ifndef"))
{
m_level++;
- if (get_define(lti[1]) != NULL)
+ if (get_define(lti[1]) != nullptr)
m_ifflag |= (1 << m_level);
}
else if (lti[0].equals("#else"))