summaryrefslogtreecommitdiff
path: root/src/pugixml.cpp
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-04-22 07:52:20 -0700
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-04-22 07:52:20 -0700
commit12744fd1fae0cf2bf26cfd17c4bff8b5488ebfdd (patch)
treef496510a586e74bfbcf7b4121de3d0c4b38fecd9 /src/pugixml.cpp
parentb87160013b697d9fb1b3b419b9801eecac9b3885 (diff)
Remove redundant has_value check
Diffstat (limited to 'src/pugixml.cpp')
-rw-r--r--src/pugixml.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp
index 49959aa..5a318d3 100644
--- a/src/pugixml.cpp
+++ b/src/pugixml.cpp
@@ -5457,7 +5457,7 @@ namespace pugi
if (!_root) return PUGIXML_TEXT("");
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 PUGIXML_TEXT("");