aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2024-05-28 20:39:08 -0700
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2024-05-28 20:39:08 -0700
commitac0ef854e08c879f2250ad63d0a3a381ceb01a86 (patch)
tree28f99e04cc2a65ec7ecbbef8076e960732ca827d
parent7c66cf7b06c322edfa3811021f915da0041fec0a (diff)
downloadpugixml-ac0ef854e08c879f2250ad63d0a3a381ceb01a86.zip
pugixml-ac0ef854e08c879f2250ad63d0a3a381ceb01a86.tar.gz
pugixml-ac0ef854e08c879f2250ad63d0a3a381ceb01a86.tar.bz2
Clarify comments for xml_*::empty()HEADmaster
"empty" can be mistaken for "has no children" in case of xml_node in particular; we now use both empty and null in the comment in hopes that it may help.
-rw-r--r--src/pugixml.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pugixml.hpp b/src/pugixml.hpp
index 3b81009..9af50df 100644
--- a/src/pugixml.hpp
+++ b/src/pugixml.hpp
@@ -396,7 +396,7 @@ namespace pugi
bool operator<=(const xml_attribute& r) const;
bool operator>=(const xml_attribute& r) const;
- // Check if attribute is empty
+ // Check if attribute is empty (null)
bool empty() const;
// Get attribute name/value, or "" if attribute is empty
@@ -507,7 +507,7 @@ namespace pugi
bool operator<=(const xml_node& r) const;
bool operator>=(const xml_node& r) const;
- // Check if node is empty.
+ // Check if node is empty (null)
bool empty() const;
// Get node type
@@ -764,7 +764,7 @@ namespace pugi
// Borland C++ workaround
bool operator!() const;
- // Check if text object is empty
+ // Check if text object is empty (null)
bool empty() const;
// Get text, or "" if object is empty