summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/prg/nltool.cpp
diff options
context:
space:
mode:
author couriersud <couriersud@arcor.de>2016-04-23 23:35:27 +0200
committer couriersud <couriersud@arcor.de>2016-05-02 21:56:57 +0200
commit576189b1695936f35f077918fbb9191ed68ad8df (patch)
treeb20669555c740ced035d9ffb78f71d1619cf7dd9 /src/lib/netlist/prg/nltool.cpp
parent28eeb49676eb5550180d481b87f5a6ca86564828 (diff)
Converted most subdevices to unique_ptr. This is a temporary measure
until the device initialisation is moved into the constructor. Started converting constructors of devices to be passed name and netlist. (nw)
Diffstat (limited to 'src/lib/netlist/prg/nltool.cpp')
-rw-r--r--src/lib/netlist/prg/nltool.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/netlist/prg/nltool.cpp b/src/lib/netlist/prg/nltool.cpp
index 62a8af91b5a..99b395cb268 100644
--- a/src/lib/netlist/prg/nltool.cpp
+++ b/src/lib/netlist/prg/nltool.cpp
@@ -304,8 +304,7 @@ static void listdevices()
pstring out = pfmt("{1} {2}(<id>")(f->classname(),"-20")(f->name());
pstring terms("");
- netlist::device_t *d = f->Create();
- d->init(nt, pfmt("dummy{1}")(i));
+ netlist::device_t *d = f->Create(nt.setup().netlist(), pfmt("dummy{1}")(i));
d->start_dev();
// get the list of terminals ...