Use `emplace()` rather than `insert()`.

This commit is contained in:
Alberto Gonzalez 2020-04-20 04:42:19 +00:00
parent dfcb936cd5
commit 6294621825
No known key found for this signature in database
GPG Key ID: 8395A8BA109708B2
1 changed files with 1 additions and 1 deletions

View File

@ -213,7 +213,7 @@ struct TechmapWorker
if (tpl_w->port_id > 0)
{
IdString posportname = stringf("$%d", tpl_w->port_id);
positional_ports[posportname] = tpl_w->name;
positional_ports.emplace(posportname, tpl_w->name);
if (!flatten_mode && tpl_w->get_bool_attribute(ID::techmap_autopurge) &&
(!cell->hasPort(tpl_w->name) || !GetSize(cell->getPort(tpl_w->name))) &&