MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / refPtrDecRef

Function refPtrDecRef

source/core/StarRefPtr.hpp:292–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290}
291
292inline void refPtrDecRef(RefCounter* p) {
293 if (--p->m_refCounter == 0)
294 delete p;
295}
296
297inline RefCounter::RefCounter()
298 : m_refCounter(0) {}

Callers 3

~RefPtrMethod · 0.85
StarRefPtr.hppFile · 0.85
resetMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected