1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 10:18:13 +00:00

JsonObject: Let the compiler generate a copy constructor.

This was only needed while HashMap was noncopyable. :^)
This commit is contained in:
Andreas Kling 2019-06-24 12:02:49 +02:00
parent 15003245cd
commit dd36f797d5

View file

@ -11,12 +11,6 @@ public:
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(); }
bool is_empty() const { return m_members.is_empty(); }