diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-07-08 13:08:21 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-07-08 13:08:21 +0200 |
commit | a8aadf73e98a6aca7a610744e4d9971739338d84 (patch) | |
tree | bc72918fa305a939d5a118c0ee7eb405882ea58a /AK/JsonParser.cpp | |
parent | 7bb1e465c627cdf4305e306d6c261f8b39c4a7f8 (diff) | |
download | serenity-a8aadf73e98a6aca7a610744e4d9971739338d84.zip |
AK: Add JsonObject::set(key, &&value) overload.
This dodges a whole bunch of value copying in JsonParser.
Diffstat (limited to 'AK/JsonParser.cpp')
-rw-r--r-- | AK/JsonParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/AK/JsonParser.cpp b/AK/JsonParser.cpp index 0dde664b5b..fe20cab087 100644 --- a/AK/JsonParser.cpp +++ b/AK/JsonParser.cpp @@ -108,7 +108,7 @@ JsonValue JsonParser::parse_object() consume_specific(':'); consume_whitespace(); auto value = parse(); - object.set(name, value); + object.set(name, move(value)); consume_whitespace(); if (peek() == '}') break; |