mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-05 03:50:07 +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:
parent
663af835f9
commit
4e5f005421
21 changed files with 182 additions and 223 deletions
|
|
@ -563,8 +563,8 @@ private:
|
|||
{
|
||||
int y = 0;
|
||||
|
||||
for (int i = getNumChildComponents(); --i >= 0;)
|
||||
y = jmax (y, getChildComponent (i)->getBottom());
|
||||
for (auto* c : getChildren())
|
||||
y = jmax (y, c->getBottom());
|
||||
|
||||
return y;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue