Skip to content

Commit

Permalink
Avoid shadowing local variable with another
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreSenellart committed Feb 24, 2024
1 parent d6c9160 commit b01deae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dDNNF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ void dDNNF::makeSmooth()
std::vector<std::unordered_set<gate_t> > varss;

std::for_each(getWires(g).begin(), getWires(g).end(),
[&](gate_t g) {
varss.push_back(vars(g));
[&](gate_t x) {
varss.push_back(vars(x));
});
std::for_each(varss.begin(), varss.end(),
[&](const auto &s) {
Expand Down

0 comments on commit b01deae

Please sign in to comment.