add constness to UIPageView's removeAllPages method

This commit is contained in:
andyque 2014-05-27 11:20:04 +08:00
parent 070abfdb44
commit 30582ffa6f
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ void PageView::removePageAtIndex(ssize_t index)
void PageView::removeAllPages() void PageView::removeAllPages()
{ {
for(auto& node : _pages) for(const auto& node : _pages)
{ {
removeProtectedChild(node); removeProtectedChild(node);
} }