mirror of
https://github.com/verilator/verilator.git
synced 2026-09-03 08:24:31 +02:00
Internals: Use emplace instead of insert(make_pair(...)). No functional change intended.
This commit is contained in:
+1
-1
@@ -142,7 +142,7 @@ private:
|
||||
+ cvtToStr(nodep->fileline()->lineno()) + "_" + type;
|
||||
const auto it = m_varnames.find(name);
|
||||
if (it == m_varnames.end()) {
|
||||
m_varnames.insert(make_pair(name, 1));
|
||||
m_varnames.emplace(name, 1);
|
||||
} else {
|
||||
int suffix = (it->second)++;
|
||||
name += "_" + cvtToStr(suffix);
|
||||
|
||||
Reference in New Issue
Block a user