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:
parent
6f24123f0c
commit
2f5c0a6985
|
@ -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))
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue