Internals: Add missing const. No functional change.

This commit is contained in:
Wilson Snyder 2022-11-19 10:48:46 -05:00
parent 0322e9da7e
commit de9c92fd14
3 changed files with 3 additions and 3 deletions

View File

@ -126,7 +126,7 @@ private:
// STATE
AstNodeModule* m_modp = nullptr; // Current module
AstNodeFTask* m_ftaskp = nullptr; // Current function/task
const AstNodeFTask* m_ftaskp = nullptr; // Current function/task
size_t m_enumValueTabCount = 0; // Number of tables with enum values created
int m_randCaseNum = 0; // Randcase number within a module for var naming

View File

@ -228,7 +228,7 @@ void V3Stats::statsReport() {
std::ofstream* ofp{V3File::new_ofstream(filename)};
if (ofp->fail()) v3fatal("Can't write " << filename);
const StatsReport reporter(ofp);
{ StatsReport{ofp}; } // Destruct before cleanup
// Cleanup
ofp->close();

View File

@ -118,7 +118,7 @@ class VariableOrder final {
V3TSP::StateVec states;
for (const auto& pair : m2v) {
if (pair.first.empty()) continue;
states.push_back(new VarTspSorter(pair.first));
states.push_back(new VarTspSorter{pair.first});
}
// Do the TSP sort