mirror of
https://github.com/Z3Prover/z3
synced 2025-06-14 18:06:15 +00:00
being deliberate non-null #5156
This commit is contained in:
parent
878847179f
commit
54f04a5751
1 changed files with 4 additions and 4 deletions
|
@ -3616,12 +3616,12 @@ namespace z3 {
|
||||||
}
|
}
|
||||||
|
|
||||||
struct scoped_cb {
|
struct scoped_cb {
|
||||||
user_propagator_base* p;
|
user_propagator_base& p;
|
||||||
scoped_cb(void* _p, Z3_solver_callback cb):p(static_cast<user_propagator_base*>(_p)) {
|
scoped_cb(void* _p, Z3_solver_callback cb):p(*static_cast<user_propagator_base*>(_p)) {
|
||||||
p->cb = cb;
|
p.cb = cb;
|
||||||
}
|
}
|
||||||
~scoped_cb() {
|
~scoped_cb() {
|
||||||
p->cb = nullptr;
|
p.cb = nullptr;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue