mirror of https://github.com/axmolengine/axmol.git
closed #4861, fixed temparory variable issue
This commit is contained in:
parent
657720e509
commit
8baa88e2e1
|
@ -1542,7 +1542,7 @@ bool Layout::getPassFocusToChild()
|
||||||
|
|
||||||
Size Layout::getLayoutContentSize()const
|
Size Layout::getLayoutContentSize()const
|
||||||
{
|
{
|
||||||
auto children = this->getChildren();
|
const auto& children = this->getChildren();
|
||||||
Size layoutSize = Size::ZERO;
|
Size layoutSize = Size::ZERO;
|
||||||
int widgetCount =0;
|
int widgetCount =0;
|
||||||
for(const auto& widget : children)
|
for(const auto& widget : children)
|
||||||
|
|
Loading…
Reference in New Issue