mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
AK: Make all HashMap copy-constructs explicit
This commit is contained in:
committed by
Jelle Raaijmakers
parent
6421899078
commit
95d90a760b
@@ -14,7 +14,7 @@ JsonObject::JsonObject() = default;
|
||||
JsonObject::~JsonObject() = default;
|
||||
|
||||
JsonObject::JsonObject(JsonObject const& other)
|
||||
: m_members(other.m_members)
|
||||
: m_members(other.m_members.clone().release_value_but_fixme_should_propagate_errors())
|
||||
{
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ JsonObject::JsonObject(JsonObject&& other)
|
||||
JsonObject& JsonObject::operator=(JsonObject const& other)
|
||||
{
|
||||
if (this != &other)
|
||||
m_members = other.m_members;
|
||||
m_members = other.m_members.clone().release_value_but_fixme_should_propagate_errors();
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user