1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:37:35 +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

@ -2,7 +2,7 @@
#include <AK/Retainable.h>
class StyleValue : public Retainable<StyleValue> {
class StyleValue : public RefCounted<StyleValue> {
public:
virtual ~StyleValue();

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; }

View file

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

View file

@ -11,9 +11,9 @@ class LayoutNode {
public:
virtual ~LayoutNode();
void retain();
void release();
int retain_count() const { return m_retain_count; }
void ref();
void deref();
int ref_count() const { return m_retain_count; }
const Rect& rect() const { return m_rect; }
Rect& rect() { return m_rect; }