1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:28:12 +00:00

AK: Rename Retainable => RefCounted.

(And various related renames that go along with it.)
This commit is contained in:
Andreas Kling 2019-06-21 15:29:31 +02:00
parent ef1bfcb9d8
commit 77b9fa89dd
45 changed files with 118 additions and 118 deletions

View file

@ -10,13 +10,13 @@ Node::~Node()
{
}
void Node::retain()
void Node::ref()
{
ASSERT(m_retain_count);
++m_retain_count;
}
void Node::release()
void Node::deref()
{
ASSERT(m_retain_count);
if (!--m_retain_count)

View file

@ -18,9 +18,9 @@ class Node {
public:
virtual ~Node();
void retain();
void release();
int retain_count() const { return m_retain_count; }
void ref();
void deref();
int ref_count() const { return m_retain_count; }
ParentNode* parent_node() { return m_parent_node; }
const ParentNode* parent_node() const { return m_parent_node; }