summaryrefslogtreecommitdiff
path: root/src/pugixml.hpp
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-07-07 20:10:48 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-07-07 20:10:48 +0000
commit5811786ccdf88af00852db78318c48deaa0dc24c (patch)
tree59bfdd72eaa7217a4820794cf9f382358a7c4c8c /src/pugixml.hpp
parente959098703889719d33b6e5d0a160f68516ae853 (diff)
remove_child and remove_attribute now return operation result
git-svn-id: http://pugixml.googlecode.com/svn/trunk@572 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src/pugixml.hpp')
-rw-r--r--src/pugixml.hpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/pugixml.hpp b/src/pugixml.hpp
index 00a273a..dacd8cd 100644
--- a/src/pugixml.hpp
+++ b/src/pugixml.hpp
@@ -1217,29 +1217,33 @@ namespace pugi
* Remove specified attribute
*
* \param a - attribute to be removed
+ * \return success flag
*/
- void remove_attribute(const xml_attribute& a);
+ bool remove_attribute(const xml_attribute& a);
/**
* Remove attribute with the specified name, if any
*
* \param name - attribute name
+ * \return success flag
*/
- void remove_attribute(const char_t* name);
+ bool remove_attribute(const char_t* name);
/**
* Remove specified child
*
* \param n - child node to be removed
+ * \return success flag
*/
- void remove_child(const xml_node& n);
+ bool remove_child(const xml_node& n);
/**
* Remove child with the specified name, if any
*
* \param name - child name
+ * \return success flag
*/
- void remove_child(const char_t* name);
+ bool remove_child(const char_t* name);
public:
/**