Skip to content

Commit

Permalink
path_node w string_view
Browse files Browse the repository at this point in the history
  • Loading branch information
danielaparker committed Nov 8, 2023
1 parent 510d6cd commit d801a7c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/jsoncons_ext/jsonpath/json_location.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ namespace jsonpath {
class path_node
{
template<class Json> friend class json_location;
//friend class json_location<Json>;
public:
using string_view_type = jsoncons::basic_string_view<CharT>;
using char_type = CharT;
Expand Down Expand Up @@ -368,7 +367,7 @@ namespace jsonpath {
switch (node->node_kind())
{
case path_node_kind::root:
buffer.append(node->name());
buffer.append(node->name().data(), node->name().size());
break;
case path_node_kind::name:
buffer.push_back('[');
Expand Down

0 comments on commit d801a7c

Please sign in to comment.