Commit a5262c18 by Niels

replaced a copy by a move to increase performance by 16-25%

parent 7ffa07e3
...@@ -8480,7 +8480,7 @@ basic_json_parser_63: ...@@ -8480,7 +8480,7 @@ basic_json_parser_63:
// return parser result and replace it with null in case the // return parser result and replace it with null in case the
// top-level value was discarded by the callback function // top-level value was discarded by the callback function
return result.is_discarded() ? basic_json() : result; return result.is_discarded() ? basic_json() : std::move(result);
} }
private: private:
......
...@@ -7790,7 +7790,7 @@ class basic_json ...@@ -7790,7 +7790,7 @@ class basic_json
// return parser result and replace it with null in case the // return parser result and replace it with null in case the
// top-level value was discarded by the callback function // top-level value was discarded by the callback function
return result.is_discarded() ? basic_json() : result; return result.is_discarded() ? basic_json() : std::move(result);
} }
private: private:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment