fixed compilation

This commit is contained in:
2025-02-02 22:13:52 +01:00
parent ded3daceb3
commit 89fb7e8a8d
3 changed files with 13 additions and 8 deletions
+3 -2
View File
@@ -34,7 +34,7 @@ utils::result<std::shared_ptr<schema_node>, utils::error> schema::attach_node(co
}
parent_node = *result;
result = push_back_child(root_, node);
push_back_child(root_, node);
// if (!pk.is_null()) {
// node->primary_key_ = pk;
@@ -81,7 +81,8 @@ utils::result<std::shared_ptr<schema_node>, utils::error> schema::find_node(cons
}
return utils::ok(i->second);
}
utils::result<std::shared_ptr<schema_node>, utils::error> schema::push_back_child(const node_ptr &parent, const node_ptr &child) {
void schema::push_back_child(const node_ptr &parent, const node_ptr &child) {
child->parent_ = parent;
child->previous_sibling_ = parent->last_child_->previous_sibling_;
child->next_sibling_ = parent->last_child_;