Skip to content
Snippets Groups Projects
Verified Commit 86c79250 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

Make iterator const

parent 653b2477
Branches
No related tags found
No related merge requests found
...@@ -73,7 +73,7 @@ void ...@@ -73,7 +73,7 @@ void
SymbolList::removeDuplicates(const string &dynare_command, WarningConsolidation &warnings) SymbolList::removeDuplicates(const string &dynare_command, WarningConsolidation &warnings)
{ {
vector<string> unique_symbols; vector<string> unique_symbols;
for (auto & it : symbols) for (const auto & it : symbols)
if (find(unique_symbols.begin(), unique_symbols.end(), it) == unique_symbols.end()) if (find(unique_symbols.begin(), unique_symbols.end(), it) == unique_symbols.end())
unique_symbols.push_back(it); unique_symbols.push_back(it);
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment