mirror of https://github.com/axmolengine/axmol.git
add constness to UIPageView's removeAllPages method
This commit is contained in:
parent
070abfdb44
commit
30582ffa6f
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue