1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Added a method Component::getChildren() to allow them to be iterated with a range-based for loop, and used this in appropriate places around the codebase

This commit is contained in:
jules 2017-07-19 12:08:47 +01:00
parent 663af835f9
commit 4e5f005421
21 changed files with 182 additions and 223 deletions

View file

@ -221,8 +221,8 @@ void TabbedButtonBar::setOrientation (const Orientation newOrientation)
{
orientation = newOrientation;
for (int i = getNumChildComponents(); --i >= 0;)
getChildComponent (i)->resized();
for (auto* child : getChildren())
child->resized();
resized();
}