Skip to content

Commit

Permalink
sonar fix
Browse files Browse the repository at this point in the history
  • Loading branch information
serges147 committed Aug 9, 2024
1 parent 2ac86be commit fe2d53c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c++/cavl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class Node // NOSONAR cpp:S1448 cpp:S4963

/// Accessors for advanced tree introspection. Not needed for typical usage.
bool isLinked() const noexcept { return nullptr != up; }
bool isRoot() const noexcept { return isLinked() && !up->isLinked(); }
bool isRoot() const noexcept { return isLinked() && (!up->isLinked()); }
auto getParentNode() noexcept -> Derived* { return isRoot() ? nullptr : down(up); }
auto getParentNode() const noexcept -> const Derived* { return isRoot() ? nullptr : down(up); }
auto getChildNode(const bool right) noexcept -> Derived* { return down(lr[right]); }
Expand Down

0 comments on commit fe2d53c

Please sign in to comment.