MCPcopy Create free account
hub / github.com/Tripwire/tripwire-open-source / AddRef

Method AddRef

src/core/refcountobj.cpp:120–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120void cRefCountObj::AddRef() const
121{
122 ASSERT(this);
123
124 if (mRefCount <= 0)
125 {
126 THROW_INTERNAL("refcountobj.cpp");
127 }
128
129 ++mRefCount;
130
131#ifdef DEBUG
132 ++referenceCounter;
133#endif
134}
135
136void cRefCountObj::Release() const
137{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected