Internals: Favor {} constructor syntax. No functional change intended.

This commit is contained in:
Wilson Snyder
2023-04-06 21:04:26 -04:00
parent cdb61842d6
commit 8caf9be3e6
25 changed files with 63 additions and 63 deletions
+1 -1
View File
@@ -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