⚡ avoid copying a string
This commit is contained in:
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -12477,7 +12477,7 @@ basic_json_parser_74:
|
|||||||
// the valid JSON Patch operations
|
// the valid JSON Patch operations
|
||||||
enum class patch_operations {add, remove, replace, move, copy, test, invalid};
|
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")
|
if (op == "add")
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -11511,7 +11511,7 @@ class basic_json
|
|||||||
// the valid JSON Patch operations
|
// the valid JSON Patch operations
|
||||||
enum class patch_operations {add, remove, replace, move, copy, test, invalid};
|
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")
|
if (op == "add")
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user