mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Windows: Fix and suppress some analysis warnings
This fixes warnings that are emitted when building with the `-analyze` flag enabled.
This commit is contained in:
parent
54423f6583
commit
31a7c62baf
83 changed files with 476 additions and 230 deletions
|
|
@ -949,19 +949,16 @@ void ValueTree::moveChild (int currentIndex, int newIndex, UndoManager* undoMana
|
|||
//==============================================================================
|
||||
void ValueTree::createListOfChildren (OwnedArray<ValueTree>& list) const
|
||||
{
|
||||
jassert (object != nullptr);
|
||||
|
||||
for (auto* o : object->children)
|
||||
{
|
||||
jassert (o != nullptr);
|
||||
list.add (new ValueTree (*o));
|
||||
}
|
||||
if (object != nullptr)
|
||||
for (auto* o : object->children)
|
||||
if (o != nullptr)
|
||||
list.add (new ValueTree (*o));
|
||||
}
|
||||
|
||||
void ValueTree::reorderChildren (const OwnedArray<ValueTree>& newOrder, UndoManager* undoManager)
|
||||
{
|
||||
jassert (object != nullptr);
|
||||
object->reorderChildren (newOrder, undoManager);
|
||||
if (object != nullptr)
|
||||
object->reorderChildren (newOrder, undoManager);
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue