avoid copying a string

parent 9ff0cc0f
......@@ -12477,7 +12477,7 @@ basic_json_parser_74:
// the valid JSON Patch operations
enum class patch_operations {add, remove, replace, move, copy, test, invalid};
const auto get_op = [](const std::string op)
const auto get_op = [](const std::string & op)
{
if (op == "add")
{
......
......@@ -11511,7 +11511,7 @@ class basic_json
// the valid JSON Patch operations
enum class patch_operations {add, remove, replace, move, copy, test, invalid};
const auto get_op = [](const std::string op)
const auto get_op = [](const std::string & op)
{
if (op == "add")
{
......
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