summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/nl_setup.cpp
diff options
context:
space:
mode:
author couriersud <couriersud@gmx.org>2019-09-27 22:30:33 +0200
committer couriersud <couriersud@gmx.org>2019-09-27 22:30:33 +0200
commitce612896a88be5a2cd6887f0ad569901fcbe0926 (patch)
tree64460ba27223208369461613938bfc9cf7119ed6 /src/lib/netlist/nl_setup.cpp
parent28192a5a65e6bc9d143ab8ccb64589e414847a94 (diff)
netlist: Fix a number of minor issues. (nw)
- lint warnings - remove const on return types
Diffstat (limited to 'src/lib/netlist/nl_setup.cpp')
-rw-r--r--src/lib/netlist/nl_setup.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/netlist/nl_setup.cpp b/src/lib/netlist/nl_setup.cpp
index 447e78cfe2e..3ffafe994e0 100644
--- a/src/lib/netlist/nl_setup.cpp
+++ b/src/lib/netlist/nl_setup.cpp
@@ -891,7 +891,7 @@ void models_t::model_parse(const pstring &model_in, model_map_t &map)
remainder = plib::left(remainder, remainder.size() - 1);
std::vector<pstring> pairs(plib::psplit(remainder," ", true));
- for (pstring &pe : pairs)
+ for (const pstring &pe : pairs)
{
auto pose = pe.find('=');
if (pose == pstring::npos)
@@ -900,9 +900,10 @@ void models_t::model_parse(const pstring &model_in, model_map_t &map)
}
}
-pstring models_t::model_string(model_map_t &map)
+pstring models_t::model_string(const model_map_t &map) const
{
- pstring ret = map["COREMODEL"] + "(";
+ // operator [] has no const implementation
+ pstring ret = map.at("COREMODEL") + "(";
for (auto & i : map)
ret += (i.first + '=' + i.second + ' ');