mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:37:46 +00:00
JsonObject: Add move constructors for JsonObject(Json{Array,Object}&&)
This also helps avoid JsonValue copying during parse.
This commit is contained in:
parent
82826104e0
commit
93596dc00d
2 changed files with 19 additions and 0 deletions
|
@ -50,6 +50,13 @@ public:
|
|||
JsonValue(const JsonArray&);
|
||||
JsonValue(const JsonObject&);
|
||||
|
||||
JsonValue(JsonArray&&);
|
||||
JsonValue(JsonObject&&);
|
||||
|
||||
// FIXME: Implement these
|
||||
JsonValue& operator=(JsonArray&&) = delete;
|
||||
JsonValue& operator=(JsonObject&&) = delete;
|
||||
|
||||
String serialized() const;
|
||||
void serialize(StringBuilder&) const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue