Remove redundant has_value check
This commit is contained in:
parent
b87160013b
commit
12744fd1fa
@ -5457,7 +5457,7 @@ namespace pugi
|
|||||||
if (!_root) return PUGIXML_TEXT("");
|
if (!_root) return PUGIXML_TEXT("");
|
||||||
|
|
||||||
for (xml_node_struct* i = _root->first_child; i; i = i->next_sibling)
|
for (xml_node_struct* i = _root->first_child; i; i = i->next_sibling)
|
||||||
if (impl::has_value(i) && i->contents && impl::is_text_node(i))
|
if (impl::is_text_node(i) && i->contents)
|
||||||
return i->contents;
|
return i->contents;
|
||||||
|
|
||||||
return PUGIXML_TEXT("");
|
return PUGIXML_TEXT("");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user