mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Miscellaneous fixes for some PVS static analyser warnings
This commit is contained in:
parent
f3be41caba
commit
92f3a1e88f
6 changed files with 24 additions and 18 deletions
|
|
@ -187,10 +187,12 @@ void DropShadower::updateShadows()
|
|||
WeakReference<Component> sw (shadowWindows[i]);
|
||||
|
||||
if (sw != nullptr)
|
||||
{
|
||||
sw->setAlwaysOnTop (owner->isAlwaysOnTop());
|
||||
|
||||
if (sw != nullptr)
|
||||
{
|
||||
if (sw == nullptr)
|
||||
return;
|
||||
|
||||
switch (i)
|
||||
{
|
||||
case 0: sw->setBounds (x - shadowEdge, y, shadowEdge, h); break;
|
||||
|
|
@ -199,13 +201,12 @@ void DropShadower::updateShadows()
|
|||
case 3: sw->setBounds (x, owner->getBottom(), w, shadowEdge); break;
|
||||
default: break;
|
||||
}
|
||||
}
|
||||
|
||||
if (sw != nullptr)
|
||||
if (sw == nullptr)
|
||||
return;
|
||||
|
||||
sw->toBehind (i == 3 ? owner : shadowWindows.getUnchecked (i + 1));
|
||||
|
||||
if (sw == nullptr)
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue