Merge pull request #15259 from mxenabled/steerlink/ccnode_do_enumerate

Enumerate getChildren() instead of _children.
This commit is contained in:
zilongshanren 2016-03-17 13:47:57 +08:00
commit 034410f5c5
1 changed files with 1 additions and 1 deletions

View File

@ -903,7 +903,7 @@ bool Node::doEnumerate(std::string name, std::function<bool (Node *)> callback)
}
bool ret = false;
for (const auto& child : _children)
for (const auto& child : getChildren())
{
if (std::regex_match(child->_name, std::regex(searchName)))
{