summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2017-02-05 21:52:30 -0800
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2017-02-05 21:52:30 -0800
commit8cc3144e7b494b831dc386c6ce22139551b7f984 (patch)
tree5ed5514bce94a84598d714f8d67189f911cbc98f
parent00e39c581a22e0451b91b7338ec5ef8a80832aae (diff)
XPath: Remove redundant calls from xml_node::select_nodes et al
Instead of delegating to a method that just forwards the call to xpath_query call the relevant method directly.
-rw-r--r--src/pugixml.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp
index 2902538..110ece6 100644
--- a/src/pugixml.cpp
+++ b/src/pugixml.cpp
@@ -12600,7 +12600,7 @@ namespace pugi
PUGI__FN xpath_node xml_node::select_node(const char_t* query, xpath_variable_set* variables) const
{
xpath_query q(query, variables);
- return select_node(q);
+ return q.evaluate_node(*this);
}
PUGI__FN xpath_node xml_node::select_node(const xpath_query& query) const
@@ -12611,7 +12611,7 @@ namespace pugi
PUGI__FN xpath_node_set xml_node::select_nodes(const char_t* query, xpath_variable_set* variables) const
{
xpath_query q(query, variables);
- return select_nodes(q);
+ return q.evaluate_node_set(*this);
}
PUGI__FN xpath_node_set xml_node::select_nodes(const xpath_query& query) const
@@ -12622,7 +12622,7 @@ namespace pugi
PUGI__FN xpath_node xml_node::select_single_node(const char_t* query, xpath_variable_set* variables) const
{
xpath_query q(query, variables);
- return select_single_node(q);
+ return q.evaluate_node(*this);
}
PUGI__FN xpath_node xml_node::select_single_node(const xpath_query& query) const