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

being deliberate non-null #5156

This commit is contained in:
Nikolaj Bjorner 2021-04-10 16:10:35 -07:00
parent 878847179f
commit 54f04a5751

View file

@ -3616,12 +3616,12 @@ namespace z3 {
}
struct scoped_cb {
user_propagator_base* p;
scoped_cb(void* _p, Z3_solver_callback cb):p(static_cast<user_propagator_base*>(_p)) {
p->cb = cb;
user_propagator_base& p;
scoped_cb(void* _p, Z3_solver_callback cb):p(*static_cast<user_propagator_base*>(_p)) {
p.cb = cb;
}
~scoped_cb() {
p->cb = nullptr;
p.cb = nullptr;
}
};