mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:14:58 +00:00
AK: Rename Retainable => RefCounted.
(And various related renames that go along with it.)
This commit is contained in:
parent
ef1bfcb9d8
commit
77b9fa89dd
45 changed files with 118 additions and 118 deletions
|
@ -30,7 +30,7 @@ void JsonValue::copy_from(const JsonValue& other)
|
|||
switch (m_type) {
|
||||
case Type::String:
|
||||
m_value.as_string = other.m_value.as_string;
|
||||
AK::retain_if_not_null(m_value.as_string);
|
||||
AK::ref_if_not_null(m_value.as_string);
|
||||
break;
|
||||
case Type::Object:
|
||||
m_value.as_object = new JsonObject(*other.m_value.as_object);
|
||||
|
@ -101,7 +101,7 @@ JsonValue::JsonValue(const String& value)
|
|||
} else {
|
||||
m_type = Type::String;
|
||||
m_value.as_string = const_cast<StringImpl*>(value.impl());
|
||||
AK::retain_if_not_null(m_value.as_string);
|
||||
AK::ref_if_not_null(m_value.as_string);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -121,7 +121,7 @@ void JsonValue::clear()
|
|||
{
|
||||
switch (m_type) {
|
||||
case Type::String:
|
||||
AK::release_if_not_null(m_value.as_string);
|
||||
AK::deref_if_not_null(m_value.as_string);
|
||||
break;
|
||||
case Type::Object:
|
||||
delete m_value.as_object;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue