mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 20:21:26 +00:00
- removed NoVirtualRefCountedBase class
This commit is contained in:
parent
94b77de5ed
commit
e0cdb1e32e
1 changed files with 1 additions and 10 deletions
|
@ -2,16 +2,7 @@
|
|||
|
||||
// Simple lightweight reference counting pointer alternative for std::shared_ptr which stores the reference counter in the handled object itself.
|
||||
|
||||
// Base classes for handled objects
|
||||
class NoVirtualRefCountedBase
|
||||
{
|
||||
public:
|
||||
void IncRef() { refCount++; }
|
||||
void DecRef() { if (--refCount <= 0) delete this; }
|
||||
private:
|
||||
int refCount = 0;
|
||||
};
|
||||
|
||||
// Base class for handled objects
|
||||
class RefCountedBase
|
||||
{
|
||||
public:
|
||||
|
|
Loading…
Reference in a new issue