diff options
author | 2019-10-06 23:50:13 +0200 | |
---|---|---|
committer | 2019-10-06 23:50:13 +0200 | |
commit | 545f8069ef6d0095464479f4f90d3c7240d96a37 (patch) | |
tree | e6881a9ea485e5a38b13f143634831ddad2b83d0 /src/lib/netlist/plib/pparser.cpp | |
parent | 38fd19fe301c3be1cb7942ca4272687928ddf4e6 (diff) |
netlist: maintenance and lint fixes. (nw)
Diffstat (limited to 'src/lib/netlist/plib/pparser.cpp')
-rw-r--r-- | src/lib/netlist/plib/pparser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/netlist/plib/pparser.cpp b/src/lib/netlist/plib/pparser.cpp index d257de3d3a8..c2134e50afb 100644 --- a/src/lib/netlist/plib/pparser.cpp +++ b/src/lib/netlist/plib/pparser.cpp @@ -465,7 +465,7 @@ pstring ppreprocessor::process_line(pstring line) line = process_comments(m_line); - pstring lt = plib::trim(plib::replace_all(line, pstring("\t"), pstring(" "))); + pstring lt = plib::trim(plib::replace_all(line, "\t", " ")); pstring ret; // FIXME ... revise and extend macro handling if (plib::startsWith(lt, "#")) @@ -476,7 +476,7 @@ pstring ppreprocessor::process_line(pstring line) m_level++; std::size_t start = 0; lt = replace_macros(lt); - std::vector<pstring> t(psplit(replace_all(lt.substr(3), pstring(" "), pstring("")), m_expr_sep)); + std::vector<pstring> t(psplit(replace_all(lt.substr(3), " ", ""), m_expr_sep)); auto val = static_cast<int>(expr(t, start, 255)); if (val == 0) m_ifflag |= (1 << m_level); |