Codechange: document some virtual functions

This commit is contained in:
Rubidium
2026-02-06 21:38:49 +01:00
committed by rubidium42
parent 59d9619fc1
commit 4d4e37dbf1
7 changed files with 41 additions and 4 deletions
+3
View File
@@ -46,8 +46,11 @@ public:
SimpleCountedObject() : ref_count(0) {}
virtual ~SimpleCountedObject() = default;
/** Increase the reference count by one. */
inline void AddRef() { ++this->ref_count; }
/** Decrease the reference count by one. Once zero call FinaleRelease and then destruct the object. */
void Release();
/** Called during Release, so the object can throw exceptions (you cannot in destructors). */
virtual void FinalRelease() {};
private: