mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:47:36 +00:00
JsonObject: Let the compiler generate a copy constructor.
This was only needed while HashMap was noncopyable. :^)
This commit is contained in:
parent
15003245cd
commit
dd36f797d5
1 changed files with 0 additions and 6 deletions
|
@ -11,12 +11,6 @@ public:
|
||||||
JsonObject() { }
|
JsonObject() { }
|
||||||
~JsonObject() { }
|
~JsonObject() { }
|
||||||
|
|
||||||
JsonObject(const JsonObject& other)
|
|
||||||
{
|
|
||||||
for (auto& it : other.m_members)
|
|
||||||
m_members.set(it.key, it.value);
|
|
||||||
}
|
|
||||||
|
|
||||||
int size() const { return m_members.size(); }
|
int size() const { return m_members.size(); }
|
||||||
bool is_empty() const { return m_members.is_empty(); }
|
bool is_empty() const { return m_members.is_empty(); }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue