mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
Assert that queued checks are non-null
This commit is contained in:
parent
d21e0563c1
commit
3cc720592a
1 changed files with 3 additions and 1 deletions
|
|
@ -113,8 +113,10 @@ private:
|
||||||
}
|
}
|
||||||
// execute work
|
// execute work
|
||||||
for (T* check : vChecks) {
|
for (T* check : vChecks) {
|
||||||
if (fOk)
|
assert(check);
|
||||||
|
if (fOk) {
|
||||||
fOk = (*check)();
|
fOk = (*check)();
|
||||||
|
}
|
||||||
delete check;
|
delete check;
|
||||||
}
|
}
|
||||||
vChecks.clear();
|
vChecks.clear();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue