avoid copying a string

pull/880/head^2
Niels Lohmann 2017-02-26 11:22:18 +01:00
parent 9ff0cc0f02
commit f1cd15ce7e
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69
2 changed files with 2 additions and 2 deletions

View File

@ -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")
{

View File

@ -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")
{