fixed compilation
This commit is contained in:
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user