From e0cdb1e32ea96455c52893c97733473bb19452f7 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Mon, 18 Oct 2021 10:26:21 +0300 Subject: [PATCH] - removed NoVirtualRefCountedBase class --- src/common/utility/refcounted.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/common/utility/refcounted.h b/src/common/utility/refcounted.h index fd3e82aad1..81ea3fc6df 100644 --- a/src/common/utility/refcounted.h +++ b/src/common/utility/refcounted.h @@ -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: