forked from organicmaps/organicmaps
Added symmetric check in dtor of ScopedMarkTokens.
This commit is contained in:
parent
ce7bc3a7f9
commit
3634449c05
1 changed files with 4 additions and 0 deletions
|
@ -94,6 +94,10 @@ struct ScopedMarkTokens
|
|||
|
||||
~ScopedMarkTokens()
|
||||
{
|
||||
#if defined(DEBUG)
|
||||
for (size_t i : m_range)
|
||||
ASSERT(m_usedTokens[i], (i));
|
||||
#endif
|
||||
fill(m_usedTokens.begin() + m_range.m_begin, m_usedTokens.begin() + m_range.m_end,
|
||||
false /* used */);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue