Internals: Favor const_iterator (in a few obvious spots, more needed). No functional change.

This commit is contained in:
Wilson Snyder
2020-03-15 18:34:09 -04:00
parent 57068b95ef
commit 5d9d1cc09f
12 changed files with 29 additions and 31 deletions
+2 -2
View File
@@ -157,7 +157,7 @@ int main(int argc, char** argv, char** env) {
{
const VlStringSet& readFiles = top.opt.readFiles();
for (VlStringSet::iterator it = readFiles.begin(); it != readFiles.end(); ++it) {
for (VlStringSet::const_iterator it = readFiles.begin(); it != readFiles.end(); ++it) {
string filename = *it;
top.readCoverage(filename);
}
@@ -183,7 +183,7 @@ int main(int argc, char** argv, char** env) {
V3Error::abortIfWarnings();
if (top.opt.unlink()) {
const VlStringSet& readFiles = top.opt.readFiles();
for (VlStringSet::iterator it = readFiles.begin(); it != readFiles.end(); ++it) {
for (VlStringSet::const_iterator it = readFiles.begin(); it != readFiles.end(); ++it) {
string filename = *it;
unlink(filename.c_str());
}