mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +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
|
||||
for (T* check : vChecks) {
|
||||
if (fOk)
|
||||
assert(check);
|
||||
if (fOk) {
|
||||
fOk = (*check)();
|
||||
}
|
||||
delete check;
|
||||
}
|
||||
vChecks.clear();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue