mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
add assertion.
This commit is contained in:
parent
2083c9f479
commit
74674f7f69
@ -68,6 +68,10 @@ class NS_COM_GLUE nsTObserverArray_base {
|
||||
: mIterators(nsnull) {
|
||||
}
|
||||
|
||||
~nsTObserverArray_base() {
|
||||
NS_ASSERTION(mIterators == nsnull, "iterators outlasting array");
|
||||
}
|
||||
|
||||
/**
|
||||
* Adjusts iterators after an element has been inserted or removed
|
||||
* from the array.
|
||||
|
Loading…
Reference in New Issue
Block a user