This commit is contained in:
joewanchen 2014-12-21 01:03:30 +08:00
parent 3765f87651
commit c2473b9b99
2 changed files with 2 additions and 2 deletions

View File

@ -204,7 +204,7 @@ void foreachNodeDescendant(Node* parent, tCallBack callback)
{
callback(parent);
auto children = parent->getChildren();
auto& children = parent->getChildren();
for (auto child : children)
{
foreachNodeDescendant(child, callback);

View File

@ -1659,7 +1659,7 @@ bool Layout::isLastWidgetInContainer(Widget* widget, FocusDirection direction)c
return true;
}
auto container = parent->getChildren();
auto& container = parent->getChildren();
ssize_t index = container.getIndex(widget);
if (parent->getLayoutType() == Type::HORIZONTAL)
{