summaryrefslogtreecommitdiff
path: root/AK/JsonParser.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-07-08 13:08:21 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-07-08 13:08:21 +0200
commita8aadf73e98a6aca7a610744e4d9971739338d84 (patch)
treebc72918fa305a939d5a118c0ee7eb405882ea58a /AK/JsonParser.cpp
parent7bb1e465c627cdf4305e306d6c261f8b39c4a7f8 (diff)
downloadserenity-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.cpp2
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;