Skip to content

Commit

Permalink
Remove unnecessary duplicate of v_copy_node_children() and add defaul…
Browse files Browse the repository at this point in the history
…t parameter.
  • Loading branch information
parsley72 committed Dec 16, 2023
1 parent 029c571 commit 6df8b24
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
6 changes: 0 additions & 6 deletions node_set.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,6 @@ node_set& node_set::operator=(const node_set& ns2) {
return *this;
}

/// Copy all element children of a node to the node_set
void node_set::v_copy_node_children(const XMLNode* XNp_root) ///< The father of the nodes to be copied
{
v_copy_node_children(XNp_root, nullptr);
}

/// Copy all element children of a node to the node_set, if their name matches a given name
void node_set::v_copy_node_children(const XMLNode* XNp_root, ///< The father of the nodes to be copied
const char* cp_lookup) ///< Lookup name (or nullptr)
Expand Down
3 changes: 1 addition & 2 deletions node_set.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,7 @@ class node_set {
return atof(S_get_value(u_which).c_str());
}

void v_copy_node_children(const tinyxml2::XMLNode* XNp_root);
void v_copy_node_children(const tinyxml2::XMLNode* XNp_root, const char* cp_lookup);
void v_copy_node_children(const tinyxml2::XMLNode* XNp_root, const char* cp_lookup = nullptr);
void v_copy_selected_node_recursive(const tinyxml2::XMLNode* XNp_root);
void v_copy_selected_node_recursive(const tinyxml2::XMLNode* XNp_root, const char* cp_lookup);
void v_copy_selected_node_recursive_no_attrib(const tinyxml2::XMLNode* XNp_root, const char* cp_lookup);
Expand Down

0 comments on commit 6df8b24

Please sign in to comment.