Merge pull request #1 from halx99/halx99-patch-1

Fix indent
This commit is contained in:
HALX99 2019-01-12 10:43:45 +08:00 committed by GitHub
commit baac8d70b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 10 deletions

View File

@ -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);
}

View File

@ -510,7 +510,7 @@ namespace pugi
// Get text object for the current node
xml_text text() const;
// Ensure child, more convinently for config updating
// Get child, if not exist, create it, more conveniently for config updating
xml_node operator[](const char_t* name);
// Get child, attribute or next/previous sibling with the specified name