Skip to content

Commit ac0ef85

Browse files
committed
Clarify comments for xml_*::empty()
"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.
1 parent 7c66cf7 commit ac0ef85

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pugixml.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ namespace pugi
396396
bool operator<=(const xml_attribute& r) const;
397397
bool operator>=(const xml_attribute& r) const;
398398

399-
// Check if attribute is empty
399+
// Check if attribute is empty (null)
400400
bool empty() const;
401401

402402
// Get attribute name/value, or "" if attribute is empty
@@ -507,7 +507,7 @@ namespace pugi
507507
bool operator<=(const xml_node& r) const;
508508
bool operator>=(const xml_node& r) const;
509509

510-
// Check if node is empty.
510+
// Check if node is empty (null)
511511
bool empty() const;
512512

513513
// Get node type
@@ -764,7 +764,7 @@ namespace pugi
764764
// Borland C++ workaround
765765
bool operator!() const;
766766

767-
// Check if text object is empty
767+
// Check if text object is empty (null)
768768
bool empty() const;
769769

770770
// Get text, or "" if object is empty

0 commit comments

Comments
 (0)