mirror of
https://github.com/verilator/verilator.git
synced 2026-09-03 08:24:31 +02:00
C++11: Favor auto, range for. No functional change intended.
This commit is contained in:
+2
-8
@@ -441,15 +441,9 @@ public:
|
||||
// CONSTRUCTORS
|
||||
explicit UndrivenVisitor(AstNetlist* nodep) { iterate(nodep); }
|
||||
virtual ~UndrivenVisitor() override {
|
||||
for (std::vector<UndrivenVarEntry*>::iterator it = m_entryps[1].begin();
|
||||
it != m_entryps[1].end(); ++it) {
|
||||
(*it)->reportViolations();
|
||||
}
|
||||
for (UndrivenVarEntry* ip : m_entryps[1]) ip->reportViolations();
|
||||
for (int usr = 1; usr < 3; ++usr) {
|
||||
for (std::vector<UndrivenVarEntry*>::iterator it = m_entryps[usr].begin();
|
||||
it != m_entryps[usr].end(); ++it) {
|
||||
delete (*it);
|
||||
}
|
||||
for (UndrivenVarEntry* ip : m_entryps[usr]) delete ip;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user