From 2245a9ca06c52b43e9a167b45f2bc2115832b88e Mon Sep 17 00:00:00 2001 From: Daniel Parker Date: Thu, 12 Dec 2024 21:21:56 -0500 Subject: [PATCH] jsonpath operators take const_reference --- .../jsonpath/jsonpath_selector.hpp | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/include/jsoncons_ext/jsonpath/jsonpath_selector.hpp b/include/jsoncons_ext/jsonpath/jsonpath_selector.hpp index 8aa407915..51009a590 100644 --- a/include/jsoncons_ext/jsonpath/jsonpath_selector.hpp +++ b/include/jsoncons_ext/jsonpath/jsonpath_selector.hpp @@ -210,11 +210,11 @@ namespace detail { } void tail_select(dynamic_resources& resources, - reference root, - const path_node_type& last, - reference current, - node_receiver_type& receiver, - result_options options) const + reference root, + const path_node_type& last, + reference current, + node_receiver_type& receiver, + result_options options) const { if (!tail_) { @@ -227,11 +227,11 @@ namespace detail { } reference evaluate_tail(dynamic_resources& resources, - reference root, - const path_node_type& last, - reference current, - result_options options, - std::error_code& ec) const + reference root, + const path_node_type& last, + reference current, + result_options options, + std::error_code& ec) const { if (!tail_) { @@ -284,11 +284,11 @@ namespace detail { } void select(dynamic_resources& resources, - reference root, - const path_node_type& last, - reference current, - node_receiver_type& receiver, - result_options options) const override + reference root, + const path_node_type& last, + reference current, + node_receiver_type& receiver, + result_options options) const override { if (current.is_object()) {