MCPcopy Create free account
hub / github.com/Predelnik/DSpellCheck / RemoveReference

Method RemoveReference

deps/FtpClient/smart_ptr.h:27–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25public:
26 void AddReference() { ++m_iRefCount; }
27 void RemoveReference()
28 {
29 if (--m_iRefCount == 0)
30 delete this;
31 }
32
33 void MarkUnshareable() { m_fShareable = false; }
34 bool IsShareable() const { return m_fShareable; }

Callers 4

~RCPtrMethod · 0.80
RCPtrClass · 0.80
~RCIPtrMethod · 0.80
RCIPtrClass · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected