From 5811786ccdf88af00852db78318c48deaa0dc24c Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Wed, 7 Jul 2010 20:10:48 +0000 Subject: remove_child and remove_attribute now return operation result git-svn-id: http://pugixml.googlecode.com/svn/trunk@572 99668b35-9821-0410-8761-19e4c4f06640 --- src/pugixml.hpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/pugixml.hpp') 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: /** -- cgit v1.2.3