Skip to content

Commit

Permalink
added parent link to constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
riasc committed Oct 24, 2024
1 parent c3faf64 commit 3733beb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace genogrove {
// constructor
Node::Node(int k) : order(k), keys{}, children{}, parent{}, next{}, isLeaf{false} {}
Node::Node(int k) : order(k), keys{}, children{}, parent{nullptr}, next{nullptr}, isLeaf{false} {}

// getter & setter
int Node::getOrder() { return this->order; }
Expand Down

0 comments on commit 3733beb

Please sign in to comment.