summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/nl_parser.cpp
diff options
context:
space:
mode:
author couriersud <couriersud@arcor.de>2016-05-16 22:36:46 +0200
committer couriersud <couriersud@arcor.de>2016-05-21 12:58:23 +0200
commitd200744fbfb40fd5cd017c2222a44523f8ba12e6 (patch)
tree91281a8c3b55b5d12eaf622e5cd0a88550096430 /src/lib/netlist/nl_parser.cpp
parent17d85d78d1f50e3eeeb58a4f4a806ad5ea31d323 (diff)
Converted more devices to new layout. Improved memory handling in
factories. (nw)
Diffstat (limited to 'src/lib/netlist/nl_parser.cpp')
-rw-r--r--src/lib/netlist/nl_parser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/netlist/nl_parser.cpp b/src/lib/netlist/nl_parser.cpp
index e3afd6d62a3..41060df73e6 100644
--- a/src/lib/netlist/nl_parser.cpp
+++ b/src/lib/netlist/nl_parser.cpp
@@ -158,7 +158,7 @@ void parser_t::net_truthtable_start()
pstring def_param = get_string();
require_token(m_tok_param_right);
- netlist::devices::netlist_base_factory_truthtable_t *ttd = netlist::devices::nl_tt_factory_create(ni, no, hs,
+ powned_ptr<netlist::devices::netlist_base_factory_truthtable_t> ttd = netlist::devices::nl_tt_factory_create(ni, no, hs,
name, name, "+" + def_param);
while (true)
@@ -188,7 +188,7 @@ void parser_t::net_truthtable_start()
require_token(token, m_tok_TRUTHTABLE_END);
require_token(m_tok_param_left);
require_token(m_tok_param_right);
- m_setup.factory().register_device(ttd);
+ m_setup.factory().register_device(std::move(ttd));
return;
}
}