mirror of
https://github.com/verilator/verilator.git
synced 2026-09-07 10:01:11 +02:00
Internals: Use emplace instead of insert(make_pair(...)). No functional change intended.
This commit is contained in:
+1
-1
@@ -161,7 +161,7 @@ public:
|
||||
// METHODS
|
||||
void insert(AstVar* nodep) {
|
||||
UINFO(8, " dmINSERT " << nodep << endl);
|
||||
m_modVarNameMap.insert(make_pair(nodep->name(), nodep));
|
||||
m_modVarNameMap.emplace(nodep->name(), nodep);
|
||||
}
|
||||
AstVar* find(const string& name) {
|
||||
const auto it = m_modVarNameMap.find(name);
|
||||
|
||||
Reference in New Issue
Block a user