Const-correctness fixes for find_child_by_attribute
git-svn-id: http://pugixml.googlecode.com/svn/trunk@120 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
parent
9e3d8be0d0
commit
1e37455c1b
@ -2436,7 +2436,7 @@ namespace pugi
|
|||||||
n._root->destroy();
|
n._root->destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
xml_node xml_node::find_child_by_attribute(const char* name, const char* attr_name, const char* attr_value)
|
xml_node xml_node::find_child_by_attribute(const char* name, const char* attr_name, const char* attr_value) const
|
||||||
{
|
{
|
||||||
if (empty()) return xml_node();
|
if (empty()) return xml_node();
|
||||||
|
|
||||||
@ -2451,7 +2451,7 @@ namespace pugi
|
|||||||
return xml_node();
|
return xml_node();
|
||||||
}
|
}
|
||||||
|
|
||||||
xml_node xml_node::find_child_by_attribute_w(const char* name, const char* attr_name, const char* attr_value)
|
xml_node xml_node::find_child_by_attribute_w(const char* name, const char* attr_name, const char* attr_value) const
|
||||||
{
|
{
|
||||||
if (empty()) return xml_node();
|
if (empty()) return xml_node();
|
||||||
|
|
||||||
@ -2466,7 +2466,7 @@ namespace pugi
|
|||||||
return xml_node();
|
return xml_node();
|
||||||
}
|
}
|
||||||
|
|
||||||
xml_node xml_node::find_child_by_attribute(const char* attr_name, const char* attr_value)
|
xml_node xml_node::find_child_by_attribute(const char* attr_name, const char* attr_value) const
|
||||||
{
|
{
|
||||||
if (empty()) return xml_node();
|
if (empty()) return xml_node();
|
||||||
|
|
||||||
@ -2478,7 +2478,7 @@ namespace pugi
|
|||||||
return xml_node();
|
return xml_node();
|
||||||
}
|
}
|
||||||
|
|
||||||
xml_node xml_node::find_child_by_attribute_w(const char* attr_name, const char* attr_value)
|
xml_node xml_node::find_child_by_attribute_w(const char* attr_name, const char* attr_value) const
|
||||||
{
|
{
|
||||||
if (empty()) return xml_node();
|
if (empty()) return xml_node();
|
||||||
|
|
||||||
|
|||||||
@ -1104,7 +1104,7 @@ namespace pugi
|
|||||||
* \param attr_value - attribute value of child node
|
* \param attr_value - attribute value of child node
|
||||||
* \return first matching child node, or empty node
|
* \return first matching child node, or empty node
|
||||||
*/
|
*/
|
||||||
xml_node find_child_by_attribute(const char* name, const char* attr_name, const char* attr_value);
|
xml_node find_child_by_attribute(const char* name, const char* attr_name, const char* attr_value) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Find child node with the specified name that has specified attribute (use pattern matching for node name and attribute name/value)
|
* Find child node with the specified name that has specified attribute (use pattern matching for node name and attribute name/value)
|
||||||
@ -1114,7 +1114,7 @@ namespace pugi
|
|||||||
* \param attr_value - pattern for attribute value of child node
|
* \param attr_value - pattern for attribute value of child node
|
||||||
* \return first matching child node, or empty node
|
* \return first matching child node, or empty node
|
||||||
*/
|
*/
|
||||||
xml_node find_child_by_attribute_w(const char* name, const char* attr_name, const char* attr_value);
|
xml_node find_child_by_attribute_w(const char* name, const char* attr_name, const char* attr_value) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Find child node that has specified attribute
|
* Find child node that has specified attribute
|
||||||
@ -1123,7 +1123,7 @@ namespace pugi
|
|||||||
* \param attr_value - attribute value of child node
|
* \param attr_value - attribute value of child node
|
||||||
* \return first matching child node, or empty node
|
* \return first matching child node, or empty node
|
||||||
*/
|
*/
|
||||||
xml_node find_child_by_attribute(const char* attr_name, const char* attr_value);
|
xml_node find_child_by_attribute(const char* attr_name, const char* attr_value) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Find child node that has specified attribute (use pattern matching for attribute name/value)
|
* Find child node that has specified attribute (use pattern matching for attribute name/value)
|
||||||
@ -1132,7 +1132,7 @@ namespace pugi
|
|||||||
* \param attr_value - pattern for attribute value of child node
|
* \param attr_value - pattern for attribute value of child node
|
||||||
* \return first matching child node, or empty node
|
* \return first matching child node, or empty node
|
||||||
*/
|
*/
|
||||||
xml_node find_child_by_attribute_w(const char* attr_name, const char* attr_value);
|
xml_node find_child_by_attribute_w(const char* attr_name, const char* attr_value) const;
|
||||||
|
|
||||||
#ifndef PUGIXML_NO_STL
|
#ifndef PUGIXML_NO_STL
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user