Skip to content

Commit

Permalink
tidy code
Browse files Browse the repository at this point in the history
  • Loading branch information
danielaparker committed Dec 31, 2024
1 parent a8623ac commit c5c3da3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/jsoncons_ext/jmespath/jmespath.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ namespace detail {
bool is_right_associative_;

protected:
~unary_operator() = default; // virtual destructor not needed
virtual ~unary_operator() = default;
public:
unary_operator(operator_kind oper)
: precedence_level_(operator_table::precedence_level(oper)),
Expand Down Expand Up @@ -847,7 +847,7 @@ namespace detail {
std::size_t precedence_level_;
bool is_right_associative_;
protected:
~binary_operator() = default; // virtual destructor not needed
virtual ~binary_operator() = default;
public:
binary_operator(operator_kind oper)
: precedence_level_(operator_table::precedence_level(oper)),
Expand Down
2 changes: 2 additions & 0 deletions include/jsoncons_ext/jsonpath/expression.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,8 @@ namespace detail {
is_right_associative_(is_right_associative)
{
}

virtual ~binary_operator() = default;

std::size_t precedence_level() const
{
Expand Down

0 comments on commit c5c3da3

Please sign in to comment.