Let compiler without C++11 support happy.
This commit is contained in:
parent
dba112439c
commit
8b2ef66d27
@ -5485,8 +5485,8 @@ namespace pugi
|
||||
PUGI__FN xml_node xml_node::operator[](const char_t* name)
|
||||
{
|
||||
if (!_root) return xml_node();
|
||||
auto node = this->child(name);
|
||||
if (node) return node;
|
||||
xml_node n = this->child(name);
|
||||
if (n) return n;
|
||||
return this->append_child(name);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user