mirror of
https://github.com/verilator/verilator.git
synced 2026-09-01 02:16:47 +02:00
Internals: Favor {} constructor syntax. No functional change intended.
This commit is contained in:
+1
-1
@@ -95,7 +95,7 @@ private:
|
||||
if (vscp->user1p()) return VN_AS(vscp->user1p(), VarScope);
|
||||
const AstVar* const varp = vscp->varp();
|
||||
const string newvarname
|
||||
= string("__Vsampled__") + vscp->scopep()->nameDotless() + "__" + varp->name();
|
||||
= string{"__Vsampled__"} + vscp->scopep()->nameDotless() + "__" + varp->name();
|
||||
FileLine* const flp = vscp->fileline();
|
||||
AstVar* const newvarp = new AstVar{flp, VVarType::MODULETEMP, newvarname, varp->dtypep()};
|
||||
newvarp->noReset(true); // Reset by below assign
|
||||
|
||||
Reference in New Issue
Block a user