Verified Commit be023bda authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Simplification: the [] operator already inserts the new element

parent f41e6811
......@@ -3631,11 +3631,7 @@ DynamicModel::writeOutput(ostream &output, const string &basename, bool block_de
// Write Pac equation tag info
map<string, vector<pair<string, string>>> for_writing;
for (auto & it : pac_eqtag_and_lag)
if (for_writing.find(it.first.first) == for_writing.end())
for_writing.emplace(it.first.first, vector<pair<string, string>>());
for_writing[it.first.first].emplace_back(it.first.second, it.second.first);
for (auto & it : for_writing)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment