From a139654980b2d2560667b12c886de7518ec97c40 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Tue, 12 Jun 2018 15:08:01 +0200 Subject: Add IdString API Signed-off-by: Clifford Wolf --- frontend/json/jsonparse.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'frontend/json/jsonparse.cc') diff --git a/frontend/json/jsonparse.cc b/frontend/json/jsonparse.cc index 5f394217..3f965ce4 100644 --- a/frontend/json/jsonparse.cc +++ b/frontend/json/jsonparse.cc @@ -224,10 +224,10 @@ NetInfo *ground_net(NetInfo *net) PortInfo port_info; PortRef port_ref; - cell->name = string(net->name + ".GND"); + cell->name = string(net->name.str() + ".GND"); cell->type = string("GND"); - port_info.name = cell->name + "[]"; + port_info.name = cell->name.str() + "[]"; port_info.net = net; port_info.type = PORT_OUT; @@ -247,10 +247,10 @@ NetInfo *vcc_net(NetInfo *net) PortInfo port_info; PortRef port_ref; - cell->name = string(net->name + ".VCC"); + cell->name = string(net->name.str() + ".VCC"); cell->type = string("VCC"); - port_info.name = cell->name + "[]"; + port_info.name = cell->name.str() + "[]"; port_info.net = net; port_info.type = PORT_OUT; @@ -269,7 +269,7 @@ NetInfo *floating_net(NetInfo *net) PortInfo port_info; PortRef port_ref; - port_info.name = net->name + ".floating"; + port_info.name = net->name.str() + ".floating"; port_info.net = net; port_info.type = PORT_OUT; -- cgit v1.2.3