mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Internals: Use emplace instead of insert(make_pair(...)). No functional change intended.
This commit is contained in:
+2
-2
@@ -115,7 +115,7 @@ public:
|
||||
depCount++;
|
||||
}
|
||||
VxHolder newVx(vxp, pos++, depCount);
|
||||
m_waitingVertices.insert(make_pair(vxp, newVx));
|
||||
m_waitingVertices.emplace(vxp, newVx);
|
||||
}
|
||||
} else { // REVERSE
|
||||
if (vxp->outEmpty()) {
|
||||
@@ -127,7 +127,7 @@ public:
|
||||
depCount++;
|
||||
}
|
||||
VxHolder newVx(vxp, pos++, depCount);
|
||||
m_waitingVertices.insert(make_pair(vxp, newVx));
|
||||
m_waitingVertices.emplace(vxp, newVx);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user