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

Lots of small whitespace tweaks.

This commit is contained in:
jules 2015-12-13 19:32:05 +00:00
parent 0d3afee459
commit 02492b36b9
179 changed files with 405 additions and 407 deletions

View file

@ -40,7 +40,7 @@ DrawableComposite::DrawableComposite (const DrawableComposite& other)
updateBoundsReentrant (false)
{
for (int i = 0; i < other.getNumChildComponents(); ++i)
if (const Drawable* const d = dynamic_cast <const Drawable*> (other.getChildComponent(i)))
if (const Drawable* const d = dynamic_cast<const Drawable*> (other.getChildComponent(i)))
addAndMakeVisible (d->createCopy());
}
@ -60,7 +60,7 @@ Rectangle<float> DrawableComposite::getDrawableBounds() const
Rectangle<float> r;
for (int i = getNumChildComponents(); --i >= 0;)
if (const Drawable* const d = dynamic_cast <const Drawable*> (getChildComponent(i)))
if (const Drawable* const d = dynamic_cast<const Drawable*> (getChildComponent(i)))
r = r.getUnion (d->isTransformed() ? d->getDrawableBounds().transformedBy (d->getTransform())
: d->getDrawableBounds());
@ -314,7 +314,7 @@ ValueTree DrawableComposite::createValueTree (ComponentBuilder::ImageProvider* i
for (int i = 0; i < getNumChildComponents(); ++i)
{
const Drawable* const d = dynamic_cast <const Drawable*> (getChildComponent(i));
const Drawable* const d = dynamic_cast<const Drawable*> (getChildComponent(i));
jassert (d != nullptr); // You can't save a mix of Drawables and normal components!
childList.addChild (d->createValueTree (imageProvider), -1, nullptr);