3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-08 10:25:18 +00:00

remove 2 unneeded lambda captures

This commit is contained in:
Nuno Lopes 2024-12-17 16:02:24 +00:00
parent 6f24123f0c
commit 2f5c0a6985
2 changed files with 2 additions and 2 deletions

View file

@ -52,7 +52,7 @@ expr_ref var_subst::operator()(expr * n, unsigned num_args, expr * const * args)
rep(n, result);
return result;
}
if (is_app(n) && all_of(*to_app(n), [&](expr* arg) { return is_ground(arg) || is_var(arg); })) {
if (is_app(n) && all_of(*to_app(n), [](expr* arg) { return is_ground(arg) || is_var(arg); })) {
ptr_buffer<expr> new_args;
for (auto arg : *to_app(n)) {
if (is_ground(arg))

View file

@ -102,7 +102,7 @@ namespace qembp {
SASSERT(num == accessors->size());
// -- all accessors must have exactly one argument
if (any_of(*accessors, [&](const func_decl* acc) { return acc->get_arity() != 1; })) {
if (any_of(*accessors, [](const func_decl* acc) { return acc->get_arity() != 1; })) {
return BR_FAILED;
}