From 214684b3be28c393f726163ddc5946cd6dc56d30 Mon Sep 17 00:00:00 2001 From: XiaoFeng Date: Mon, 6 Jul 2015 16:45:04 +0800 Subject: [PATCH] Fix --- cocos/ui/UILayoutComponent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/ui/UILayoutComponent.cpp b/cocos/ui/UILayoutComponent.cpp index 70fa9aa57b..50a01a7d85 100644 --- a/cocos/ui/UILayoutComponent.cpp +++ b/cocos/ui/UILayoutComponent.cpp @@ -673,7 +673,7 @@ namespace ui { page->forceDoLayout(); Vector _layoutVector = page->getPages(); - for each (auto item in _layoutVector) + for(auto& item : _layoutVector) { ui::Helper::doLayout(item); }