Internals: Add const. No functional change.

This commit is contained in:
Wilson Snyder
2021-06-20 18:33:13 -04:00
parent ec4eb18846
commit 512fe0a2d1
87 changed files with 690 additions and 669 deletions
+2 -2
View File
@@ -324,8 +324,8 @@ private:
VL_DO_DANGLING(tempp->deleteTree(), tempp);
}
if (m_generate) {
string index = AstNode::encodeNumber(m_varValuep->toSInt());
string nname = m_beginName + "__BRA__" + index + "__KET__";
const string index = AstNode::encodeNumber(m_varValuep->toSInt());
const string nname = m_beginName + "__BRA__" + index + "__KET__";
oneloopp = new AstBegin(oneloopp->fileline(), nname, oneloopp, true);
}
VL_DO_CLEAR(pushDeletep(m_varValuep), m_varValuep = nullptr);