| 197 | } |
| 198 | |
| 199 | void ReferenceCountManager::decrease(uint& ref, uint targetId) |
| 200 | { |
| 201 | Q_ASSERT(ref > 0); |
| 202 | Q_ASSERT(shouldDoDUChainReferenceCounting(this)); |
| 203 | Q_ASSERT(!oldReferences->findIndex(ReferenceCountItem(m_id, targetId))); |
| 204 | uint refIndex = references->findIndex(ReferenceCountItem(m_id, targetId)); |
| 205 | Q_ASSERT(refIndex); |
| 206 | --ref; |
| 207 | references->deleteItem(refIndex); |
| 208 | oldReferences->index(ReferenceCountItem(m_id, targetId)); |
| 209 | } |
| 210 | } |
| 211 | |
| 212 | #else |
no test coverage detected