stl'ed one more instance

This commit is contained in:
G.E 2024-05-17 23:18:55 +03:00
parent 3b01effaf7
commit 84dd8de656

View File

@ -280,10 +280,8 @@ void findDerivedSquashers(const NGHolder &g, const vector<NFAVertex> &vByIndex,
const unordered_map<NFAVertex, u32> &region_map, const unordered_map<NFAVertex, u32> &region_map,
smgb_cache &cache) { smgb_cache &cache) {
deque<NFAVertex> remaining; deque<NFAVertex> remaining;
for (const auto &m : *squash) { auto mfirst = [](const pair<NFAVertex, NFAStateSet> &m) { return m.first; };
// cppcheck-suppress useStlAlgorithm std::transform(squash->begin(), squash->end(), std::back_inserter(remaining), mfirst);
remaining.emplace_back(m.first);
}
while (!remaining.empty()) { while (!remaining.empty()) {
NFAVertex v = remaining.back(); NFAVertex v = remaining.back();