MCPcopy Create free account
hub / github.com/KDE/kdevelop / decrease

Method decrease

kdevplatform/serialization/referencecounting.cpp:199–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197}
198
199void 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

Callers 3

decMethod · 0.45
setIndexMethod · 0.45

Calls 5

ReferenceCountItemClass · 0.85
findIndexMethod · 0.45
deleteItemMethod · 0.45
indexMethod · 0.45

Tested by

no test coverage detected